Sendbird Chat SDK for .NET  3.0.29
SendBird.SendBirdPushHelper Class Reference

Classes

interface  OnPushRequestCompleteListener
 
class  RegisterTokenStatus
 

Public Member Functions

delegate void _OnPushRequestCompleteListener (bool isRegistered, string token)
 
delegate void _OnPushRequestCompleteListenerError (SendBirdException e)
 
delegate void OnPushTokenReceiveListener (string token, SendBirdException e)
 

Static Public Member Functions

static void RetryPendingAction ()
 
static void RegisterPushHandler< T > (T handler)
 
static void UnregisterPushHandler (OnPushRequestCompleteListener listener)
 
static void UnregisterPushHandler (bool unRegisterAll, OnPushRequestCompleteListener listener)
 
static bool IsDuplicateMessage (JsonObject remoteMessage)
 
static void PushToken (OnPushTokenReceiveListener listener)
 

Member Function Documentation

◆ IsDuplicateMessage()

static bool SendBird.SendBirdPushHelper.IsDuplicateMessage ( JsonObject  remoteMessage)
inlinestatic

When you received message you can call this and can figure out whether this message is duplicated.

Parameters
remoteMessagereceived FCM/HMS message
Returns
true if it was already sent.

◆ PushToken()

static void SendBird.SendBirdPushHelper.PushToken ( OnPushTokenReceiveListener  listener)
inlinestatic

If you need to retrieve the current registration token you can call this.

Parameters
listenercallback listener

◆ RegisterPushHandler< T >()

static void SendBird.SendBirdPushHelper.RegisterPushHandler< T > ( handler)
inlinestatic

Registers push handler for receiving FCM/HMS push notifications. To enable push notification and get a token, refer to SendBird Docs.

When you call this we will register FCM/HMS push token, depending on the type of the handler, to server automatically. And you'll start receiving Push from handler (SendBirdPushHandler#onMessageReceived(Context, com.google.firebase.messaging.RemoteMessage))

Parameters
handlerAll FCM/HMS push messages can receive from this handler. SendBirdPushHandler for FCM, SendBirdHmsPushHandler for HMS.
Type Constraints
T :AbstractPushHandler 

◆ UnregisterPushHandler() [1/2]

static void SendBird.SendBirdPushHelper.UnregisterPushHandler ( bool  unRegisterAll,
OnPushRequestCompleteListener  listener 
)
inlinestatic

Unregisters push handler for not receiving FCM/HMS push notifications. When you call this we will request at the server to remove FCM/HMS push token. And you'll not be able to receive any more push notification

Parameters
unRegisterAllif it set as true unregisters all push token bound to the current.
listenerCallback handler. (OnPushRequestCompleteListener

◆ UnregisterPushHandler() [2/2]

static void SendBird.SendBirdPushHelper.UnregisterPushHandler ( OnPushRequestCompleteListener  listener)
inlinestatic

Unregisters push handler for not receiving FCM/HMS push notifications. When you call this we will request at the server to remove FCM/HMS push token. And you'll not be able to receive any more push notification

Parameters
listenerCallback handler. (OnPushRequestCompleteListener

The documentation for this class was generated from the following file: