Does anyone knows how to retrieve Serial Number of android in C# Xamarin Forms?
I am developing for Android Version 11 and found out that some coding are not working as it is only compatible for below Android Version 11.
If I write below code, I can get the Unique ID but I just want the Serial Number from the device so that the users can know what device.
[assembly: Xamarin.Forms.Dependency(typeof(AndroidDevice))]
public class AndroidDevice : IAndroidDevice
{
public string GetID()
{
return Android.Provider.Settings.Secure.GetString(Android.App.Application.Context.ContentResolver, Android.Provider.Settings.Secure.AndroidId);
}
}
How to retrieve that serial number?