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. (You may not need to add multidex, but if you do then add it here.)

cordova plugin add cordova-plugin-crosswalk-webview
cordova plugin add phonegap-plugin-multidex 
cordova plugin add plugins/com.xtify.mce.sdk --variable ANDROID_APPKEY= --variable CUSTOM_ACTIONS= --variable IOS_DEV_APPKEY= --variable IOS_PROD_APPKEY= --variable SERVER_URL=//sdk.ibm.xtify.com/3.0 --variable LOGLEVEL=verbose --variable AUTO_INITIALIZE_LOCATION=false --variable CHANNEL_NAME="Your Channel Name" --variable CHANNEL_DESCRIPTION="Your Channel Description" --variable CHANNEL_ID="YourChannelId" --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 *