- Home /
SystemInfo.deviceUniqueIdentifier reinstall
My question is: will SystemInfo.deviceUniqueIdentifier stay the same if the user reinstalls the game? I suppose so, after all it is a device identifier, but I want to make sure it will.
@arkano22 what is the method for getting a Unique Identifier for android per install? Running into this issue and can't seem to find a solution anywhere :,(
Answer by zhuchun · Jan 09, 2015 at 03:11 AM
http://forum.unity3d.com/threads/emergency-help-about-systeminfo-deviceuniqueidentifier-on-ios-7-0-4.213258/ By Mantas Puida From Unity Tech
Latest Unity versions use IDFV (id for vendors) as unique identifier, because Apple does not allow you to use IDFA for anything else than serving advertisements. IDFV retains its value until at least one application of specific vendors remains installed on device, once you remove last application of specific vendor this id gets reset.
Answer by heru_ · Sep 28, 2017 at 10:26 AM
i tried this on iOS, it changes when you reinstall the game (Unity 5 & iOS 10)
Answer by Graham-Dunnett · Mar 19, 2013 at 10:21 AM
SystemInfo.deviceUniqueIdentifier calls down into the device to get the ID, so I can't think it can possibly change with a re-install of the game.
Graham, I´ve confirmed that it does change with each reinstall, at least in Windows. Which renders it pretty useless for most cases.
In Android however, it does not (as of Unity 4.0, in 3.5 it DID change). Does anyone have an alternate solution to this problem? I know we could store the ID generated the first time the app runs, but unfortunately this is not easy to do for us as we already have a big user database and they would be forced to lose all their local data in order to do a clean reinstall.
If this is the intended behaviour, the name of the property is very misleading. Plus it says pretty much nothing in the docs about it.
What about iOS (8)? Can you say please - could SystemInfo.deviceUniqueIdentifier change between launches?
I tried this on iOS, it changes when you re-install the game
Your answer
![](https://koobas.hobune.stream/wayback/20220613094705im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why does SystemInfo.deviceUniqueIdentifier fail to return the same string? 0 Answers
Is deviceUniqueIdentifier actually unique? 0 Answers
Mobile Physical address 1 Answer
deviceUniqueIdentifier 1 Answer
iOS Unique identifier deprecated? 1 Answer