Migration Guide / Android
From 1.x.x to 2.x.x
-
Default value of meta-data
com.webengage.sdk.android.auto_gcm_registration
has been changed fromtrue
tofalse
. If above meta-data is not present in your AndroidManifest.xml file then insert the same by following our push notification set-up guide. -
WebEngage.get().setRegistrationID(String registrationID, String projectNumber)
has been deprecated and changed toWebEngage.get().setRegistrationID(String registrationID)
. This new api only accepts GCM/FCM registered token.
From (less than or equal to 1.7) to (1.8 or higher)
- Remove WebEngageCallback annotation from all your callbacks implementation.
- Manually register your push, in-app and lifecycle callback implementation to WebEngage.
- Remove below lines from your progaurd file.
-keep class * implements com.webengage.sdk.android.callbacks.PushNotificationCallbacks{*;}
-keep class * implements com.webengage.sdk.android.callbacks.LifeCycleCallbacks{*;}
-keep class * implements com.webengage.sdk.android.callbacks.InAppNotificationCallbacks{*;}
Updated over 4 years ago