getDeviceId method
The server-side unique persistent ID of the device.
The ID is available only after the MPN device object has been successfully registered on the server. I.e. when its status is REGISTERED
or
SUSPENDED
.
Note: a device token change, if the previous device token was correctly stored on the Shared Preferences storage, does not cause the device ID to change: the
server moves previous MPN subscriptions from the previous token to the new one and the device ID remains unaltered.
Lifecycle This method can be called at any time.
Returns the MPN device ID.
Implementation
external String? getDeviceId();