Getting started with Capacitor SDK
Capacitor SDK for Medallia Experience Orchestration.
Follow the documentation on how to use Medallia Experience Orchestration Capacitor SDK.
Requirements for Capacitor SDK version 4.1.0
- Capacitor requirements:
- Capacitor Android 7.4.2
- Capacitor iOS 7.4.2
- Capacitor Core 7.4.2Note: Only version 7.4.2 of the Capacitor libraries is supported by the SDK. Use newer versions at your oun risk.
- iOS requirements:
- Minimum deployment target 15.0
- Xcode 26.+
- Base iOS version 26.0
- Android requirements:
- Android 10.0 - 15.0 (API levels 29 - 35)
- Android Gradle Plugin 8.7.2+
- Gradle 8.13 - 9.0
- Java 21
- Kotlin 2.2.21+
Registration of Medallia's NPM
~/.npmrc files:@medallia:registry=https://repository.medallia.com/artifactory/api/npm/public-npmInstallation of the MXO Capacitor SDK
App's root folder and run the following command:npm install @medallia/mxo-capacitor-js-sdk
npx cap syncIf iOS and/or Android has not been added to your project, add them using the following commands as described in the Capacitor documentation for iOS and Android:npm install @capacitor/ios
npx cap add ios
npm install @capacitor/android
npx cap add android
npx cap syncInstallation for iOS
Starting with MXO Capacitor SDK 4.1.0, the npm package includes a Package.swift file so the plugin can be integrated through Swift Package Manager (SPM) on iOS.
For Capacitor iOS projects using SPM, install or upgrade the SDK and sync:
npm install @medallia/mxo-capacitor-js-sdk@latest
npx cap sync iosCapacitor wires the plugin through SPM during sync.
npx cap spm-migration-assistant. For more details see our migration guide.MedalliaMXOBundle.bundle into the Copy Bundle Resources build phase of your app target. For more details, see here.No change required for existing apps using CocoaPods. Continue using npx cap sync with your existing Podfile. The SDK still ships MedalliaMxoCapacitorJsSdk.podspec, and CocoaPods remains fully supported in 4.1.0+.
Installation for Android
In addition to the above, Android SDK requires the following updates to the build.gradle files:
Applying the MXO Orchestration Plugin.
Adding the
coreLibraryDesugaringdependency.
Configuration of the MXO Capacitor SDK
To configure the Medallia Experience Orchestration Capacitor SDK, see Configuring Capacitor SDK.
Removal of the MXO Capacitor SDK
To remove the MXO Capacitor SDK from your app, execute the following command in your Terminal:
npm uninstall @medallia/mxo-capacitor-js-sdk
npx cap sync