Package io.getstream.android.push.huawei
Object HuaweiMessagingDelegate
-
- All Implemented Interfaces:
public class HuaweiMessagingDelegateHelper class for delegating Huawei push messages to the Stream Chat SDK.
-
-
Field Summary
Fields Modifier and Type Field Description public final static HuaweiMessagingDelegateINSTANCE
-
Method Summary
Modifier and Type Method Description final static BooleanhandleRemoteMessage(RemoteMessage remoteMessage)Handles remoteMessage from Huawei. final static UnitregisterHuaweiToken(String token, String providerName)Register new Huawei Token. -
-
Method Detail
-
handleRemoteMessage
final static Boolean handleRemoteMessage(RemoteMessage remoteMessage)
Handles remoteMessage from Huawei. If the remoteMessage wasn't sent from the Stream Server and doesn't contain the needed data, return false to notify you that this remoteMessage needs to be handled by you.
- Parameters:
remoteMessage- The message to be handled.- Returns:
True if the remoteMessage was sent from the Stream Server and has been handled.
-
registerHuaweiToken
final static Unit registerHuaweiToken(String token, String providerName)
Register new Huawei Token.
- Parameters:
token- provided by Huawei.providerName- The provider name.
-
-
-
-