Reset the Mobile Device ID

You can reset the mobile SDK's unique identifier for the user by adding this code somewhere in your app (for example, in About or Settings):

SASCollector.getInstance().resetDeviceID();
Note: The device ID is a unique ID that is generated by the SASCollector and stored locally on the device. Uninstalling the app or clearing the app's local data resets the device ID.

Before you reset the mobile device ID, the push token should be invalidated for the previous device ID. To invalidate the push token, call the registerForMobileMessages API and provide a nonzero length string (such as spaces or "delete") as the new token. After calling the resetDeviceID API, a new token should be retrieved from Firebase Cloud Messaging (FCM) and registered via registerForMobileMessages. When using a late initialization, SASCollector.initialize must be given the current Activity as the active Context, instead of the Application object.

Last updated: August 18, 2026