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 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
minCompileSdk
value of 31. Set theandroid-compileSdkVersion
preference to 31. - If using Firebase push, set the Cordova
GradlePluginGoogleServicesEnabled
preference totrue
. - We’ve removed the
swrve.googleServicesVersion
preference. Use the CordovaGradlePluginGoogleServicesVersion
 preference instead.
Previous versions
If you’re upgrading from a version older than 5.0.0, please refer to the Cordova integration guide.