Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

iOS Every Uninstall/Install gives new Id #13

Closed
mofadevs opened this issue Oct 25, 2016 · 2 comments
Closed

iOS Every Uninstall/Install gives new Id #13

mofadevs opened this issue Oct 25, 2016 · 2 comments

Comments

@mofadevs
Copy link

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.

@ericbrunner
Copy link

@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.

@jamesmontemagno
Copy link
Owner

That is what the logic does. As far as I know it is not possible:

jamesmontemagno/Xamarin.Plugins#163

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants