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 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.