Hello,
For developers, the unique device ID we can obtain will be reset after restoring the factory settings. This is because for privacy reasons, Apple and Google do not want developers to track the behavior of a specific device for a long time from a system level.
For how to obtain these unique device identifiers, you can refer to the following code.
#if ANDROID
string deviceID = Android.Provider.Settings.Secure.GetString(Platform.CurrentActivity.ContentResolver, Android.Provider.Settings.Secure.AndroidId);
#elif IOS
string deviceID = UIKit.UIDevice.CurrentDevice.IdentifierForVendor.ToString();
#endif
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.