public class SendBirdPushHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SendBirdPushHelper.OnPushRequestCompleteListener
SendBird push token registration event callback.
|
| Constructor and Description |
|---|
SendBirdPushHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
getPushToken(OnPushTokenReceiveListener listener)
If you need to retrieve the current registration token you can call this.
|
static boolean |
isDuplicateMessage(java.lang.Object remoteMessage)
When you received message you can call this and can figure out whether this message is duplicated.
|
static <T extends AbstractPushHandler> |
registerPushHandler(T handler)
Registers push handler for receiving FCM/HMS push notifications.
|
static void |
unregisterPushHandler(boolean unRegisterAll,
SendBirdPushHelper.OnPushRequestCompleteListener listener)
Unregisters push handler for not receiving FCM/HMS push notifications.
|
static void |
unregisterPushHandler(SendBirdPushHelper.OnPushRequestCompleteListener listener)
Unregisters push handler for not receiving FCM/HMS push notifications.
|
public static <T extends AbstractPushHandler> void registerPushHandler(T handler)
SendBirdPushHandler#onMessageReceived(Context, com.google.firebase.messaging.RemoteMessage))handler - All FCM/HMS push messages can receive from this handler. SendBirdPushHandler for FCM, SendBirdHmsPushHandler for HMS.public static void unregisterPushHandler(SendBirdPushHelper.OnPushRequestCompleteListener listener)
listener - Callback handler. (SendBirdPushHelper.OnPushRequestCompleteListenerpublic static void unregisterPushHandler(boolean unRegisterAll,
SendBirdPushHelper.OnPushRequestCompleteListener listener)
unRegisterAll - if it set as true unregisters all push token bound to the current.listener - Callback handler. (SendBirdPushHelper.OnPushRequestCompleteListenerpublic static boolean isDuplicateMessage(java.lang.Object remoteMessage)
remoteMessage - received FCM/HMS messagetrue if it was already sent.public static void getPushToken(OnPushTokenReceiveListener listener)
listener - callback listener Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.