If you want to upgrade the 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 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

2. 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=//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/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>

3. Rerun Cordova’s prepare command.

cordova prepare

Need more help? Check out all of our available tutorials for mobile app messaging here.

4 comments on"Upgrading the Cordova plug-ins"

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

  2. Hemant Dixit June 28, 2019

    Hi Joan,
    I am getting the following error while re-installing letest plugin in my Cordova app, please suggest.

    E:\EGGATEAPP_27Jun\eggate\platforms\android\app\libs\ibm-mobile-push-android-cordova-location-3.7.1.3.1.jar: D8: Interface `android.support.v4.app.Act
    ivityCompat$OnRequestPermissionsResultCallback` not found. It’s needed to make sure desugaring of `com.ibm.mce.plugin.cordova.location.MceJsonActivity
    ` is correct. Desugaring will assume that this interface has no default method.

    E:\EGGATEAPP_27Jun\eggate\platforms\android\app\libs\ibm-mobile-push-android-js-location-3.7.1.3.1.jar: D8: Type `android.support.v4.content.ContextCo
    mpat` was not found, it is required for default or static interface methods desugaring of `void com.ibm.mce.sdk.js.location.MceJsonApi$1.run()`
    E:\EGGATEAPP_27Jun\eggate\platforms\android\app\libs\ibm-mobile-push-android-js-location-3.7.1.3.1.jar: D8: Type `android.support.v4.app.ActivityCompa
    t` was not found, it is required for default or static interface methods desugaring of `void com.ibm.mce.sdk.js.location.MceJsonApi$1.run()`

    E:\EGGATEAPP_27Jun\eggate\platforms\android\app\libs\ibm-mobile-push-android-js-location-3.7.1.3.1.jar: D8: Type `android.support.v4.content.ContextCo
    mpat` was not found, it is required for default or static interface methods desugaring of `void com.ibm.mce.sdk.js.location.MceJsonApi.locationAuthori
    zation(android.app.Activity, android.content.Context, com.ibm.mce.sdk.js.JsonCallback)`

    E:\EGGATEAPP_27Jun\eggate\platforms\android\app\libs\ibm-mobile-push-android-sdk-3.7.1.3.1.jar: D8: Type `com.google.firebase.iid.FirebaseInstanceIdSe
    rvice` was not found, it is required for default or static interface methods desugaring of `void com.ibm.mce.sdk.fcm.FcmInstanceIdService.onTokenRefre
    sh()`

    E:\EGGATEAPP_27Jun\eggate\platforms\android\app\libs\ibm-mobile-push-android-sdk-3.7.1.3.1.jar: D8: Type `com.zebra.mpact.mpactclient.MPactClient` was
    not found, it is required for default or static interface methods desugaring of `boolean com.ibm.mce.sdk.zebra.ZebraManager.shouldUpdateZebraClientId
    (android.content.Context)`

    E:\EGGATEAPP_27Jun\eggate\platforms\android\app\libs\ibm-mobile-push-android-sdk-3.7.1.3.1.jar: D8: Type `com.google.android.gms.gcm.GoogleCloudMessag
    ing` was not found, it is required for default or static interface methods desugaring of `void com.ibm.mce.sdk.gcm.GcmIntentService.onHandleIntent(and
    roid.content.Intent)`

    E:\EGGATEAPP_27Jun\eggate\platforms\android\app\libs\ibm-mobile-push-android-sdk-3.7.1.3.1.jar: D8: Type `com.google.android.gms.iid.InstanceID` was n
    ot found, it is required for default or static interface methods desugaring of `boolean com.ibm.mce.sdk.gcm.Gcm.register(android.content.Context)`

Join The Discussion

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