Kotlin Multiplatform
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
Bug, crash and error reporting in every plan, including FREE · iOS & Android · Hosted in Switzerland
What your app gets
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.
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 ReportingTesters 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 & FeedbackReport 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 ReportingKtor’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.
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 HealthMeasure 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 TracesSharing UI on iOS with Compose Multiplatform? That setup is not tested yet. See current KMP limitations
Setup
No separate KMP wrapper dependency or Kotlin version pin. Every feature stays off until you enable it.
Add AppeliumFeedback for iOS (Swift Package Manager) and for Android (Maven Central), and call start before your shared code creates its Ktor client.
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.
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
You depend directly on the native Swift and Kotlin SDKs, with no Kotlin/Native .klib version constraints or CocoaPods requirement.
Record your native XCUITest and Android instrumentation suites with video, network logs and failure grouping in the same platform.
Every feature is opt-in. Neither SDK asks users for runtime permissions, and the iOS SDK needs no Info.plist privacy keys.
Crash reports, symbol files and AI summaries stay in Switzerland. User IP addresses are never stored. See how we protect your data
Limitations
Because both native SDKs run directly in your apps, almost everything works out of the box. These are the current limits.
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).installKotlinCrashReporter() hook in iosMain, and the crash report does not include the exception’s cause.Read every detail in the Kotlin Multiplatform documentation.
FAQ
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)+.
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.
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.
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.
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.
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.
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.
Symbolicated Kotlin crashes, Ktor network logs, bug reports and UI test recordings, hosted in Switzerland.
Trusted by
Engineering blog
Architecture, testing patterns and performance deep dives from the people who build Appelium.
A strongly typed, bidirectional and low-latency channel between the app and XCUITest, with round-trips of about 3 ms.
Read the articleA robust, scalable pattern for structuring UI tests: reusable screen verification, readable test cases, and statically typed flows and interactions.
Read the articleHow SnapshotQuery in AppeliumTests makes XCUITest element queries about 1,000 times faster while making tests more stable.
Read the article