Migration Guide / Android

From 1.x.x to 2.x.x

  1. Default value of meta-data com.webengage.sdk.android.auto_gcm_registration has been changed from true to false. If above meta-data is not present in your AndroidManifest.xml file then insert the same by following our push notification set-up guide.

  2. WebEngage.get().setRegistrationID(String registrationID, String projectNumber) has been deprecated and changed to WebEngage.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)

  1. Remove WebEngageCallback annotation from all your callbacks implementation.
  2. Manually register your push, in-app and lifecycle callback implementation to WebEngage.
  3. 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{*;}