register

abstract suspend fun register(credential: PushCredential, params: Map<String, Any>): Boolean

Register a new push credential with the server, if this is required by the platform. The parameters may include additional information or any other relevant data that the server needs to process the registration.

Return

True if the registration was successful, false otherwise.

Parameters

credential

The credential to register.

params

Additional parameters for registration including messageId.