Search This Blog

Thursday 5 May 2022

How to get Device ID of Android & iOS Xamarin Form

Write Following code to get Device ID

Android
  string id = Android.Provider.Settings.Secure.GetString(Android.App.Application.Context.ContentResolver, Android.Provider.Settings.Secure.AndroidId);
iOS
  string deviceID = UIDevice.CurrentDevice.IdentifierForVendor.ToString();



No comments:

Post a Comment

Popular Posts