Hello,
can I get the device Id or IMEID
You can get the device id, but you cannot get IMEID for android platform. Starting from Android 10, apps installed from the Google Play Store cannot get IMEI number. You will get this Security Exception.
You can refer to the following code to get the device ID.
#if ANDROID
var device_id = Android.Provider.Settings.Secure.GetString(Android.App.Application.Context.ContentResolver, Android.Provider.Settings.Secure.AndroidId);
#endif
Best Regards,
Leon Lu
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.