registerUser

abstract fun registerUser(userRegistrationCallback: UserRegistrationCallback, pushTokenRegistrationCallback: PushTokenRegistrationCallback)

Registers user and associated FCM or HMS Push Token for the Sinch Managed Push to allow receiving incoming calls via push for the specified user on this very device.

First UserRegistrationCallback callbacks are fired to either request needed credentials or to report success / failure of the registration.

Then push token registration process is initiated. After that PushTokenRegistrationCallback are fired to report success / failure.

Parameters

userRegistrationCallback

Callback for the user registration events.

pushTokenRegistrationCallback

Callback for push token registration events.