Cordova SDK upgrade guide
To upgrade to the latest version of the Swrve Cordova SDK plugin, replace the cordova-plugin-swrve folder in your project with the one found in latest release on GitHub. Or use the following command:
cordova plugin add cordova-plugin-swrve
When you add the updated folder, we recommend using the Cordova platform remove and platform add commands to ensure all changes are fully moved over.
Release 9.0.0
This section provides information for upgrading to Swrve Cordova SDK v9.0.0.
- Updated the Android native Swrve dependency to the 12 series.
- The Swrve SDK now has a
minSdkVersionof 23. Set theandroid-minSdkVersionpreference to23(Android 6.0). - The
SwrveFirebaseMessagingServiceis now declared by the native Swrve Android library and is no longer injected into yourAndroidManifest.xmlby the plugin. When upgrading, use the Cordovaplatform removeandplatform addcommands so any previously injected service declaration is regenerated cleanly — a stale, manually injected service can otherwise clash with the library’s declaration during manifest merging. - If your app uses a Kotlin-based Cordova plugin, set the
cdvKotlinVersionpreference (or a Gradle override) to2.0.20or higher. The Swrve Android 12 series is built with Kotlin 2.0.x, and a mismatch with the Kotlin version Cordova pins by default causes a Kotlin metadata build failure.
Release 8.0.0
iOS initWithAppID:apiKey:config: initializer no longer requires passing a CDVViewController instance. This change streamlines integration and improves compatibility with both Cordova and Capacitor apps.
Release 7.0.0
This section provides information for upgrading to Swrve Cordova SDK v7.0.0.
- Upgrade to
cordova-android@14.0.1. - Upgrade to
cordova-ios@7.1.1. - The Swrve SDK now has a minCompileSdk value of 35. Set the android-compileSdkVersion preference to 35.
- Removed
CustomButtonListener,ClipboardButtonListener,DismissButtonListenerAPIs. UseInAppMessageListenerinstead.
Release 6.0.1
There are no code changes required to upgrade to Swrve Cordova SDK plugin v6.0.1
Release 6.0.0
This section provides information for upgrading to Swrve Cordova SDK v6.0.0.
- Support is dropped for NodeJs 14. The minimum supported version that Cordova requires is greater than or equal to 16.13.0.
- Upgrade to
cordova-android@12.0.1. - Upgrade to
cordova-ios@7.0.1.
Release 5.0.0
This section provides information for upgrading to Swrve Cordova SDK v5.0.0.
- Upgrade to
cordova-android@11.0.0.
You must set the following configuration in your config.xml:
- The Swrve SDK now has a
minCompileSdkvalue of 31. Set theandroid-compileSdkVersionpreference to 31. - If using Firebase push, set the Cordova
GradlePluginGoogleServicesEnabledpreference totrue. - We’ve removed the
swrve.googleServicesVersionpreference. Use the CordovaGradlePluginGoogleServicesVersionpreference instead.
Previous versions
If you’re upgrading from a version older than 5.0.0, please refer to the Cordova integration guide.