getPreviousDeviceToken method

String? getPreviousDeviceToken()

The previous device token of this MPN device.

In the MpnDevice implementation it is obtained automatically from the Shared Preferences storage during creation and is used by the server to restore MPN subscriptions associated with this previous token. May be null if no MPN device has been registered yet on the application.

Lifecycle This method can be called at any time.

Returns the previous MPN device token, or null if no MPN device has been registered yet.

Implementation

external String? getPreviousDeviceToken();