SendbirdPushHandler

abstract class SendbirdPushHandler : AbstractPushHandler<RemoteMessage>

SendbirdPushHandler. This handler provides callbacks for receiving notifications from FCM. All callbacks are called only when registered.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isUniquePushToken: Boolean = false

If true, all the previously registered token for the current User will be deleted and this token will be the unique one. Default value is false

Functions

Link copied to clipboard
open override fun alwaysReceiveMessage(): Boolean

When the push payload is received, the SDK checks for the below conditions and drops the message if either one of the condition is satisfied.

Link copied to clipboard
abstract override fun onMessageReceived(context: Context, remoteMessage: RemoteMessage)

Called if new message received from SendbirdChat or the other FCM Provider. Other non-SendbirdChat payloads will be passe through so your app can handle FCM / GCM payloads from other back-ends.

Link copied to clipboard
open override fun onNewToken(newToken: String?)

Called if InstanceID token is updated. This may occur if the security of the previous token had been compromised. Note that this is called when the InstanceID token is initially generated so this is where you would retrieve the token.