Implementing support for Xiaomi MiPush messaging service.
A new Android module leanplum-mipush is added, that includes the MiPush jar file and implements push message handler.
There are several main classes:
LeanplumMiPushMessageReceiver receives the communication from MiPush SDK
LeanplumMiPushHandler Used by the receiver to parse payload, get registration id, handle click, and others.
LeanplumMiPushProvider implementation of IPushProvider. Registered in PushProviders on app start.
PushTracking provides static methods for Push Delivered and Push Opened tracking. Notice that channel is tracked too, but its value is set from SDK and not from Leanplum server due to difficulties in implementation.
Background
Implementing support for Xiaomi MiPush messaging service.
A new Android module leanplum-mipush is added, that includes the MiPush jar file and implements push message handler.
There are several main classes:
LeanplumMiPushMessageReceiver
receives the communication from MiPush SDKLeanplumMiPushHandler
Used by the receiver to parse payload, get registration id, handle click, and others.LeanplumMiPushProvider
implementation of IPushProvider. Registered in PushProviders on app start.PushTracking
provides static methods forPush Delivered
andPush Opened
tracking. Notice that channel is tracked too, but its value is set from SDK and not from Leanplum server due to difficulties in implementation.