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();
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.