Integrate the Appelium SDKs with an AI coding agent
A coding agent, such as Claude Code, GitHub Copilot or Cursor, can add the Appelium SDKs to your app. It does this well when it reads the current integration guide instead of relying on what it remembers. This page has a prompt to copy for each SDK and platform, a list of what to review afterwards, and the ways in which an agent can read this documentation.
Add AppeliumFeedback to your app
Open your agent in the folder of your app and copy the prompt of your platform. Before you send it:
- Replace
YOUR_API_KEYwith the API key of your application, which you find in the Dashboard under the application's settings. You can also leave the placeholder and put the key into the code yourself. - Name the features that you need in step 3. Every feature is off until you enable it, and the prompts enable bug reporting and crash reporting only.
Add the AppeliumFeedback SDK to this iOS app.
1. Read the integration guide and follow it: https://developer.appelium.com/documentation/feedback/ios/integration.md
2. Add the Swift package https://github.com/Appelium/AppeliumFeedback.git to the app target, with its product AppeliumFeedbackKit, from its latest version up to the next major version.
3. Call AppeliumFeedback.start once, as early as possible in the app's launch, with the API key "YOUR_API_KEY". Enable bug reporting and crash reporting, and no other feature.
4. Add no permission and no Info.plist privacy key: the SDK needs none.
5. Build the app and fix every error that your change causes.
6. Finally, list what I should check by hand: a shake (Device › Shake in the Simulator) opens the bug report form, and the report that I send appears in the Appelium Dashboard. Remind me that crash reports are not sent while a debugger is attached.
Add the AppeliumFeedback SDK to this Android app.
1. Read the integration guide and follow it: https://developer.appelium.com/documentation/feedback/android/integration.md
2. Add the dependency com.appelium:feedback in its latest version from Maven Central to the app module, in the way this project declares its dependencies.
3. Call AppeliumFeedback.start once, in onCreate of the Application class, with the API key "YOUR_API_KEY". Enable bug reporting and crash reporting, and no other feature. If the app has no Application class, create one and name it in the manifest.
4. Request no runtime permission: the SDK needs none.
5. Build the app and fix every error that your change causes. If the build reports duplicate com.google.protobuf classes, apply the fix from the guide's troubleshooting section.
6. Finally, list what I should check by hand: a shake opens the bug report form, and the report that I send appears in the Appelium Dashboard. Remind me that crash reports are not sent while a debugger is attached.
Add the appelium_feedback package to this Flutter app.
1. Read the integration guide and follow it: https://developer.appelium.com/documentation/feedback/flutter/integration.md
2. Run "flutter pub add appelium_feedback". Do not add the native AppeliumFeedback SDKs: the package contains them.
3. Call AppeliumFeedback.start once, in main, before runApp, with the API keys "YOUR_IOS_API_KEY" and "YOUR_ANDROID_API_KEY". Enable bug reporting and crash reporting, and no other feature.
4. Raise the Android minSdk to 28 if it is lower, as the guide describes. Request no runtime permission: the SDK needs none.
5. Run "flutter analyze", build the app for iOS and Android, and fix every error that your change causes.
6. Finally, list what I should check by hand: a shake opens the bug report form on both platforms, and the report that I send appears in the Appelium Dashboard. Remind me that crash reports are not sent while a native debugger is attached.
Add the AppeliumFeedback SDKs to this Kotlin Multiplatform app (native iOS and Android UI).
1. Read and follow the Kotlin Multiplatform guide (plus the linked iOS and Android guides): https://developer.appelium.com/documentation/feedback/kotlin-multiplatform.md
2. Add the Swift package https://github.com/Appelium/AppeliumFeedback.git (product AppeliumFeedbackKit) to the iOS app target and start it early in launch with "YOUR_IOS_API_KEY" before the shared code creates its Ktor client. Enable bug reporting and crash reporting, and no other feature.
3. Add com.appelium:feedback from Maven Central to the Android app module and start it in Application.onCreate with "YOUR_ANDROID_API_KEY". If the shared module uses Ktor's OkHttp engine on Android, add com.appelium:okhttp-v4 in androidMain and attach AppeliumOkhttpInterceptor and AppeliumOkhttpEventListener.Factory() as the guide shows.
4. Add KotlinCrashReporter.kt to iosMain and call KotlinCrashReporterKt.installKotlinCrashReporter() right after AppeliumFeedback.start on iOS so unhandled Kotlin exceptions carry their class, message and stack trace.
5. Add no runtime permission and no Info.plist privacy key: the SDKs need none.
6. Build both the iOS and Android apps and fix every error that your change causes.
7. Finally, list what I should check by hand: a shake opens the bug report form on both platforms, and reports appear in the Appelium Dashboard. Remind me that crash reports are not sent while a debugger is attached.
A Flutter or Kotlin Multiplatform app has two API keys, one for its iOS and one for its Android application.
For an Apple TV app, name the tvOS guide in step 1 (https://developer.appelium.com/documentation/feedback/tvos/integration.md), let the agent install the SDK as that guide describes, and ask for crash reporting only: an Apple TV has no shake gesture and no report form.
Record your UI tests with AppeliumTests
AppeliumTests goes into your UI tests, not into the app. Use the API key of the application that the tests run against.
Add the AppeliumTests SDK to the UI tests of this iOS app.
1. Read the integration guide and follow it: https://developer.appelium.com/documentation/tests/ios/integration.md
2. Add the Swift package https://github.com/Appelium/AppeliumTests.git to the UI test target, not to the app, with its product AppeliumTestsKit.
3. Start the SDK with the API key "YOUR_API_KEY" from a principal class of the UI test target, and name that class in the Info.plist of the UI test bundle, as the guide shows. Do not start it from setUp.
4. Change none of my tests.
5. Build the UI test target, run one UI test, and fix every error that your change causes.
6. Finally, list what I should check by hand: the test execution appears in the Appelium Dashboard, with a video and the logs of each test.
Add the AppeliumTests SDK to the instrumented UI tests of this Android app.
1. Read the integration guide and follow it: https://developer.appelium.com/documentation/tests/android/integration.md
2. Add the dependency com.appelium:appelium-tests in its latest version from Maven Central as androidTestImplementation, in the way this project declares its dependencies.
3. Start the SDK with the API key "YOUR_API_KEY" in a base class of the UI tests, with AppeliumTestWatcher as a JUnit rule, as the guide shows. Make the UI test classes extend that base class.
4. Change nothing else in my tests.
5. Build the tests, run one of them on a connected device or emulator, and fix every error that your change causes.
6. Finally, list what I should check by hand: the test execution appears in the Appelium Dashboard, with a video and the logs of each test.
To see the logs and crashes of the app next to those of the test, the app has to start AppeliumFeedback too. The integration guides of iOS and Android say how.
Review the result
Check the agent's change like any other:
- Features:
startenables the features that you asked for, and no other. - One start: the SDK is started once, at the place that the guide names.
- Version: the dependency is the newest release, as the tags of the Swift package (AppeliumFeedback, AppeliumTests), Maven Central or pub.dev list it. An agent sometimes takes an older version from memory.
- API key: the key belongs to this application.
- Nothing else: no permission or privacy key was added, and no code was changed that the integration does not need.
Then run the app, or the tests, and go through the checks that the agent listed.
How an agent reads this documentation
- Every page as Markdown. Replace the final slash of a page's address with
.md, for examplehttps://developer.appelium.com/documentation/feedback/ios/integration.md. An agent reads that copy with far fewer tokens than the HTML page. - All pages. llms.txt lists every page with a description and the link to its Markdown copy. llms-full.txt holds all pages in one file.
- Context7. This documentation is the library
/websites/developer_appeliumof Context7. With the Context7 MCP server in your agent, add "use context7" to your prompt, or "use library /websites/developer_appelium" to name it directly.
Investigate reports with the agent
Once reports arrive, the agent can read them too. Appelium's MCP server gives it the crashes, non-fatal errors, bug reports and UI test failures of your apps, with their call stacks, logs and screenshots, so it can go from a report to the line of code that caused it.