Release date: February 19, 2021
Overview
Android Mobile Messaging SDK version 5.5.1 release provides the push notification support for Huawei devices without Google Mobile Services and bug fixes.
Environment requirements
The Android Mobile Messaging SDK version 5.5.1 uses:
- Minimum API version 21
- Compile API version 30
- Target API version 30
- Maps SDK "com.google.android.gms:play-services-maps:16.1.0"
New API
registerLPPusher API
Added PushType to support Huawei devices without Google Play Services. Note: LivePerson push notification service doesn't support sending push notification directly to Huawei Push Kit. Only push proxy is supported.
The notificationType in payload for Huawei device is "huawei". See Android payload JSON for details.
public static void registerLPPusher(String brandId, String appId, String deviceToken, PushType pushType, LPAuthenticationParams authenticationParams, ICallback<Void, Exception> registrationCompletedCallback)
Parameter | Description |
---|---|
brandId | The account ID, for example, 652838922. |
appId | The host app ID, for example, com.liveperson.myApp. |
deviceToken | The device token for push notification. |
pushType | The push notification type. See PushType for details. |
authenticationParams | An optional parameter that enables registering without first opening a conversation. |
registrationCompletedCallback | An optional callback on the registration status. |
Bugs fixed
- Crash on conversation screen.