API reference
API reference
Select your platform
No SDKs available
No versions available

PushNotification Class

Modifiers: final
Push notification PushNotificationResult provides a simple and efficient way for devices to register for and receive push notifications, enabling developers to build engaging and interactive applications that deliver timely updates and alerts to users.

Signature

class PushNotification

Constructors

PushNotification ()
Signature
constructor()
Returns
PushNotification

Functions

register ()
Register the device to receive push notification. The registered notification id can be fetched by PushNotificationResult.id.
Signature
suspend fun register(): PushNotificationResult
Returns
PushNotificationResult
The result of the registration.
unregister ()
Unregister the device from receiving push notifications. Returns a boolean to indicate successful/unsuccessful unregistration.
Signature
suspend fun unregister(): Boolean
Returns
Boolean
A boolean indicates the result of the unregistration.
Did you find this page helpful?