If you want to upgrade the IBM Mobile App Messaging plug-ins for Cordova, remove the earlier version
plug-ins from the app before adding the new version plug-ins.

Follow these steps:

1. Remove all plugins from the application by running the following command.

cordova plugin remove com.xtify.mce.sdk com.xtify.mce.sdk.calendar com.xtify.mce.sdk.snooze com.xtify.mce.sdk.displayweb 
com.xtify.mce.sdk.inbox com.xtify.mce.sdk.inapp com.xtify.mce.sdk.geofence com.xtify.mce.sdk.location com.xtify.mce.sdk.beacon

2. Reinstall the plug-ins by running the following command.

cordova plugin add cordova-plugin-crosswalk-webview
cordova plugin add cordova-plugin-multidex 
cordova plugin add plugins/com.xtify.mce.sdk --variable ANDROID_APPKEY=<Android App Key> --variable SENDER_ID=<Google Sender ID>
 --variable CUSTOM_ACTIONS=<custom action> --variable IOS_DEV_APPKEY=<devAppKey>
 --variable IOS_PROD_APPKEY=<prodAppKey> --variable SERVER_URL=//sdk.ibm.xtify.com/3.0 --variable LOGLEVEL=verbose --variable AUTO_INITIALIZE_LOCATION=false --force
cordova plugin add <path to downloaded directory>/plugins/com.xtify.mce.sdk.calendar
cordova plugin add <path to downloaded directory>/plugins/com.xtify.mce.sdk.snooze
cordova plugin add <path to downloaded directory>/plugins/com.xtify.mce.sdk.displayweb
cordova plugin add <path to downloaded directory>/plugins/com.xtify.mce.sdk.inbox
cordova plugin add <path to downloaded directory>/plugins/com.xtify.mce.sdk.inapp
cordova plugin add <path to downloaded directory>/plugins/com.xtify.mce.sdk.geofence
cordova plugin add <path to downloaded directory>/plugins/com.xtify.mce.sdk.location --variable SYNC_RADIUS=10000 --variable SYNC_INTERVAL=60
cordova plugin add <path to downloaded directory>/plugins/com.xtify.mce.sdk.beacon --variable UUID=<UUID>

3. Rerun Cordova’s prepare command.

cordova prepare

Go Back to the Mobile App Messaging home page.

3 comments on"Upgrading the Cordova plug-ins"

  1. How to pass the user email address to IBM mobile database.

Join The Discussion

Your email address will not be published. Required fields are marked *