Upgrade the Cordova plugins
You can upgrade the Mobile app messaging plugins for Cordova by removing the earlier version plug-ins from the app before adding the new version plugins.
- Remove all plugins 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
- Reinstall the plugins 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>
- Rerun Cordova’s prepare command.
cordova prepare**
Updated 6 months ago