registerDevice

abstract suspend fun registerDevice(context: Context, deviceToken: String): Result<Unit>

Registers this device for push notifications. No action occurs if the same token is provided multiple times.

Return

The Result of performing this operation.

Parameters

context

Interface to global information about an application environment.

deviceToken

The device token to register.