Hi all,
a question regarding #24: As seen in #21, there are several Android devices which return dummy serial numbers, like "0123456789ABCDEF". As @jamesmontemagno describes there, he first checks for the serial, and if not returned, the Android_Id is checked. According to the linked Android Developer docs, Android_Id seems to be much more reliable (as it's created by Android itself) than the serial number (which is no surprise because the serial number is not reliable at all as there are many devices with dummy numbers).
So why is the serial number in Android used first? Maybe because the problems of the dummy serial numbers did not exist years ago, or are there any other reasons (security or else) why the Android_Id is not used in first place?
Many thanks!
P.S. So Android does have an ID (Android_Id) which is kept until user does a factory reset. Something similar for Apple still does not exist, so DeviceID is a new one on each uninstall and new installation of the app, right?
Hi all, a question regarding #24: As seen in #21, there are several Android devices which return dummy serial numbers, like "0123456789ABCDEF". As @jamesmontemagno describes there, he first checks for the serial, and if not returned, the Android_Id is checked. According to the linked Android Developer docs, Android_Id seems to be much more reliable (as it's created by Android itself) than the serial number (which is no surprise because the serial number is not reliable at all as there are many devices with dummy numbers).
In https://github.com/jamesmontemagno/DeviceInfoPlugin/blob/master/src/DeviceInfo.Plugin.Android/DeviceInfoImplementation.cs, I've removed lines 106-108 and 118 so I always use the Android_Id. This works fine on the emulator, and on my Wiko Lenny 3 with serial number "0123456789abcdef" ... I now get a (hopefully) unique string back (like "4e6e....").
So why is the serial number in Android used first? Maybe because the problems of the dummy serial numbers did not exist years ago, or are there any other reasons (security or else) why the Android_Id is not used in first place?
Many thanks!
P.S. So Android does have an ID (Android_Id) which is kept until user does a factory reset. Something similar for Apple still does not exist, so DeviceID is a new one on each uninstall and new installation of the app, right?