Kotlin Multiplatform

Crash, error and bug reporting for Kotlin Multiplatform apps

Use Appelium’s native iOS and Android SDKs in your Kotlin Multiplatform app with native UI. Get symbolicated Kotlin crashes on iOS and Android, Ktor network logs, in-app bug reports, UI test recordings and release health — hosted in Zürich, Switzerland.

SPM · Appelium/AppeliumFeedback

Maven · com.appelium:feedback

  • iOS 15 or later
  • Android 9 (API 28) or later
  • Native SwiftUI, UIKit & Compose UI
Kotlin Multiplatform integration guide

Bug, crash and error reporting in every plan, including FREE · iOS & Android · Hosted in Switzerland

  • Native SDKsno extra wrapper between your app and the OS
  • Ktor readyDarwin automatic on iOS, OkHttp plugin on Android
  • UI tests toorecord XCUITest and Android instrumentation runs
  • Zürichyour data stays in Switzerland

What your app gets

Full native observability across your shared Kotlin code.

Because a Kotlin Multiplatform app with native UI is a real iOS app and a real Android app, Appelium’s native SDKs give you every platform feature without a heavy cross-platform runtime layer.

Every plan

Symbolicated Kotlin crashes

Crashes from shared Kotlin code on both Android and iOS—including coroutines—are symbolicated to Kotlin file names and line numbers via your archive’s dSYMs and Android R8 mapping file, grouped by the throwing function.

Crash Reporting
Every plan

In-app bug reports

Testers and users shake the device or tap your own button to send a bug report with a screenshot, up to 3 minutes of screen recording, shared console logs, Ktor network logs and device details.

Bug Reporting & Feedback
Every plan

Non-fatal errors & ANRs

Report handled errors from shared code or platform code with the activity log leading up to them. Main-thread hangs lasting more than 5 seconds are caught automatically as ANRs on iOS and Android.

Non-Fatal Error Reporting
Every plan

Ktor & shared console logs

Ktor’s Darwin engine is captured automatically on iOS. On Android, add com.appelium:okhttp-v4 (OkHttp 4 and 5) to Ktor’s OkHttp engine. Forward logs, errors and user IDs from commonMain through a small interface.

KMP integration guide
PRO & ENTERPRISE

UI test recording & release health

Because your UI is native SwiftUI, UIKit or Jetpack Compose, Appelium Tests records XCUITest and Android instrumentation runs with video, while session monitoring tracks rollout health and crash-free sessions.

UI Test Recording Release Health
PRO & ENTERPRISE

Network & performance monitoring

Measure Ktor and native request latency, DNS/TLS timings, error rates and Appdex across environments, alongside automatic App Start timing and custom performance traces.

Network Monitoring Performance Traces

Sharing UI on iOS with Compose Multiplatform? That setup is not tested yet. See current KMP limitations

Setup

Three steps on top of the native SDKs.

No separate KMP wrapper dependency or Kotlin version pin. Every feature stays off until you enable it.

  1. 1

    Start the native SDKs

    Add AppeliumFeedback for iOS (Swift Package Manager) and for Android (Maven Central), and call start before your shared code creates its Ktor client.

  2. 2

    Wire Ktor & shared logs

    Ktor’s Darwin engine is captured automatically on iOS. On Android, add com.appelium:okhttp-v4 to Ktor’s OkHttp engine. Pass a small Diagnostics implementation into commonMain for logs, errors and user IDs.

  3. 3

    Add the iOS crash hook & symbols

    Add the short iosMain crash hook right after start on iOS so unhandled Kotlin exceptions carry their class, message and stack trace, then upload your archive’s dSYMs and Android mapping file.

@OptIn(ExperimentalNativeApi::class, ExperimentalForeignApi::class)
fun installKotlinCrashReporter() {
    setUnhandledExceptionHook { throwable ->
        NSGetUncaughtExceptionHandler()
            ?.invoke(KotlinException(throwable))
        terminateWithUnhandledException(throwable)
    }
}

@OptIn(ExperimentalNativeApi::class, UnsafeNumber::class)
private class KotlinException(throwable: Throwable) : NSException(
    name = "KotlinException",
    reason = throwable.toString(),
    userInfo = null
) {
    private val addresses = throwable.getStackTraceAddresses()
        .map { NSNumber.numberWithUnsignedLongLong(it.toULong()) }

    override fun callStackReturnAddresses(): List<NSNumber> = addresses
}
import com.appelium.okhttp_v4.AppeliumOkhttpEventListener
import com.appelium.okhttp_v4.AppeliumOkhttpInterceptor
import io.ktor.client.HttpClient
import io.ktor.client.engine.okhttp.OkHttp

actual fun createHttpClient(): HttpClient = HttpClient(OkHttp) {
    engine {
        addInterceptor(AppeliumOkhttpInterceptor())
        config {
            eventListenerFactory(AppeliumOkhttpEventListener.Factory())
        }
    }
}

Tested with Kotlin 2.4 and Ktor 3.6. Full Swift and Kotlin snippets for shared logging and symbol upload live in the Kotlin Multiplatform guide.

Why Appelium

Built for native mobile teams sharing Kotlin.

No wrapper lock-in

You depend directly on the native Swift and Kotlin SDKs, with no Kotlin/Native .klib version constraints or CocoaPods requirement.

UI tests included

Record your native XCUITest and Android instrumentation suites with video, network logs and failure grouping in the same platform.

Off by default

Every feature is opt-in. Neither SDK asks users for runtime permissions, and the iOS SDK needs no Info.plist privacy keys.

Hosted in Zürich

Crash reports, symbol files and AI summaries stay in Switzerland. User IP addresses are never stored. See how we protect your data

Limitations

What to know before you integrate.

Because both native SDKs run directly in your apps, almost everything works out of the box. These are the current limits.

  • No commonMain library yet: shared code logs messages, reports errors and sets user IDs through a small interface of your own (about 30 lines of Kotlin and Swift).
  • Compose Multiplatform UI: this setup is for KMP apps with native SwiftUI, UIKit or Jetpack Compose UI. Shared Compose Multiplatform UI on iOS is not tested yet.
  • Kotlin crashes on iOS: readable Kotlin exceptions require the installKotlinCrashReporter() hook in iosMain, and the crash report does not include the exception’s cause.
  • Ktor engines: requests are captured with the Darwin engine on iOS and the OkHttp engine on Android; other engines such as CIO are not captured automatically.
  • Performance traces from shared code: on iOS a trace name is a Swift string literal, so start custom traces in Swift and Android code.

Read every detail in the Kotlin Multiplatform documentation.

FAQ

Questions teams ask about Appelium for Kotlin Multiplatform.

Does Appelium support Kotlin Multiplatform apps?

Yes. Kotlin Multiplatform apps that share business logic and networking under native SwiftUI, UIKit or Jetpack Compose UI use Appelium’s native iOS and Android SDKs directly. Bug reporting, crash reporting, non-fatal error reporting, Ktor network logging and monitoring, sessions, performance traces, release health and UI test recording all work on iOS 15+ and Android 9 (API 28)+.

Do I need a separate Kotlin Multiplatform library?

No. Your iOS app adds AppeliumFeedback through Swift Package Manager and your Android app adds com.appelium:feedback from Maven Central, with no Kotlin version lock-in. To log messages, report errors or set a user identifier from commonMain, define a small interface in shared code and implement it once on Android and once in Swift.

How are unhandled Kotlin exceptions reported on iOS?

Add a short 15-line Kotlin hook in iosMain and call it right after AppeliumFeedback.start. Unhandled Kotlin exceptions—including uncaught coroutine exceptions—are then reported with their Kotlin class, message and stack trace, grouped by the throwing function once your archive’s dSYMs are uploaded. Functions annotated with @Throws propagate to Swift as Error values as usual.

Does Appelium capture Ktor network requests?

Yes. On iOS, Ktor’s Darwin engine uses URLSession, so requests are captured automatically when AppeliumFeedback.start runs before the client is created. On Android, add com.appelium:okhttp-v4 (compatible with OkHttp 4 and OkHttp 5) to Ktor’s OkHttp engine. Other engines such as CIO are not captured automatically.

Does Appelium work with Compose Multiplatform UI on iOS?

The guide and verification cover Kotlin Multiplatform apps with native iOS and Android UI. Apps that share their user interface on iOS with Compose Multiplatform are not tested yet.

Can I record UI tests in a Kotlin Multiplatform app?

Yes. Because your user interface is native, Appelium Tests records your existing XCUITest runs on iOS and instrumentation tests on Android with video, logs, network requests and failure grouping.

Where is the data stored, and which plans support Kotlin Multiplatform?

Every plan supports Kotlin Multiplatform apps—bug reporting, crash reporting and non-fatal errors are included in every plan, including FREE, while network monitoring, sessions, performance traces, release health and UI test recording are in PRO and ENTERPRISE. All diagnostics, symbol files and AI crash summaries are stored and processed in the Zürich region of Switzerland, and user IP addresses are never stored.

Bring Appelium to your Kotlin Multiplatform app.

Symbolicated Kotlin crashes, Ktor network logs, bug reports and UI test recordings, hosted in Switzerland.

Trusted by

TWINT