jamesmontemagno / DeviceInfoPlugin

Device Information Plugin for Xamarin and Windows
Other
145 stars 44 forks source link

DeviceId changes after uninstalling and installing the app. IOs #61

Closed filipeaugustosantos closed 6 years ago

filipeaugustosantos commented 6 years ago

DeviceId changes after you uninstall and install the application in IOs. Is this a bug or am I doing something wrong?

string id = CrossDevice.Device.DeviceId;

EmilAlipiev commented 6 years ago

I think that deviceid is a random guid created by plugin. it is not the ME of the device

jamesmontemagno commented 6 years ago

Yup, this is how iOD does it: https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor

It changes it if you remove it as it is unique for your app. It should not be used as a stable ID