Upgrade the Cordova plug-ins

You can upgrade the Mobile app messaging plug-ins for Cordova by removing the earlier version plug-ins from the app before adding the new version plug-ins.

  1. Remove all plug-ins from the application by running the following command.
cordova plugin remove co.acoustic.mobile.push.plugin co.acoustic.mobile.push.plugin.calendar co.acoustic.mobile.push.plugin.snooze co.acoustic.mobile.push.plugin.displayweb 
co.acoustic.mobile.push.plugin.inbox co.acoustic.mobile.push.plugin.inapp co.acoustic.mobile.push.plugin.geofence co.acoustic.mobile.push.plugin.location co.acoustic.mobile.push.plugin.beacon
  1. Reinstall the plug-ins by running the following command.
cordova plugin add plugins/co.acoustic.mobile.push.plugin --variable ANDROID_APPKEY= --variable IOS_DEV_APPKEY= --variable IOS_PROD_APPKEY= --variable SERVER_URL=//mobile-sdk-lib-XX-Y.brilliantcollector.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/co.acoustic.mobile.push.plugin.calendar
cordova plugin add <path to downloaded directory>/plugins/co.acoustic.mobile.push.plugin.snooze
cordova plugin add <path to downloaded directory>/plugins/co.acoustic.mobile.push.plugin.displayweb
cordova plugin add <path to downloaded directory>/plugins/co.acoustic.mobile.push.plugin.inbox
cordova plugin add <path to downloaded directory>/plugins/co.acoustic.mobile.push.plugin.inapp
cordova plugin add <path to downloaded directory>/plugins/co.acoustic.mobile.push.plugin.geofence
cordova plugin add <path to downloaded directory>/plugins/co.acoustic.mobile.push.plugin.location --variable SYNC_RADIUS=10000 --variable SYNC_INTERVAL=60
cordova plugin add <path to downloaded directory>/plugins/co.acoustic.mobile.push.plugin.beacon --variable UUID=<UUID>
  1. Rerun Cordova’s prepare command.

cordova prepare**