Last modified October 7, 2019 by Shelly Wolfe

Cordova SDK upgrade guide

This guide provides information about how you can upgrade to the latest Swrve Cordova SDK plugin. For information about the changes that have been made in each Cordova SDK release, see Cordova SDK release notes.

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 2.0.1

There are no code changes required to upgrade to Swrve Cordova SDK plugin v2.0.1.


Release 2.0

This section provides information for upgrading to Swrve Cordova SDK plugin v2.0.

Geo-triggered campaigns

To use Swrve’s geo-triggered campaigns, you must integrate the Geo SDK plugin. For more information, see the Swrve Geo SDK Guide.

Facebook ad-triggered campaigns

Use ad-triggered campaigns to customize your Facebook ad journey and user onboarding experience when a user installs your app from a Facebook ad. For more information on how to integrate them into your Cordova app, see the Facebook ad-triggered campaigns guide.


Release 1.1.1

There are no code changes required to upgrade to Swrve Cordova SDK plugin v1.1.1.


Release 1.1

This section provides information for upgrading to Swrve Cordova SDK plugin v1.1.

User Identity

To set a custom user ID, use the new Identify API call. For more information, see the Cordova integration guide.

Authenticated push

If you want to use the user identity authenticated push feature, ensure you configure your app to use silent notifications. For information on how to configure silent notifications, see the Cordova integration guide.