Closed mofadevs closed 8 years ago
@mofadevs try that:
var udid = UIDevice.CurrentDevice.IdentifierForVendor.AsString();
@jamesmontemagno Is there any way to get the real device Serial Number, IMEI, IMSI on iOS ? As far as I found out propably not but maybe you have an idea how to get a fixed ID from a device without having to launch the app get reads out the Vender Identifier. I want to use such fixed ID to authenticate a user. But the user has to tell me that ID prior to launch the app from System Settings -> About menu in the best case. Ok if that doesn't work I can of course read the Vender Id on first start of my app, transmit it to my backend and add the to my "registered" users database table but that would involve more unneccessary authentication code.
That is what the logic does. As far as I know it is not possible:
https://github.com/jamesmontemagno/Xamarin.Plugins/issues/163
Please fill out either the bug or feature request section and remove whatever section you are not using.
Bug
Version Number of Plugin: 2.0.2 Device Tested On: iPhone 6s Simulator Tested On: NA
Expected Behavior
Globally unique but same at device level, id every time the app runs [Irrespective of uninstall and install several times]
Actual Behavior
Every time the SAME app is uninstalled and installed, returned id is different. So can not use it like UDID.
Steps to reproduce the Behavior
Feature Request:
Please fill in what you would like It seems its the implementation but I would really like to use id as UDID. Any other way to get that on iOS? BTW for android its unique per device but same for different apps so it can be used as UDID.