Search Unity

emergency help about SystemInfo.deviceUniqueIdentifier on ios 7.0.4

Discussion in 'iOS and tvOS' started by lancerli, Nov 25, 2013.

  1. lancerli

    lancerli

    Joined:
    Sep 3, 2013
    Posts:
    4
    I use SystemInfo.deviceUniqueIdentifier on my code.

    My unity is 4.2.2 and 4.3
    It works well on device with IOS 6.0 and prior


    But on device with ios 7.0.4, In my iphone5s, iphone5, and ipad3

    If I delete my app from phone, SystemInfo.deviceUniqueIdentifier will be different every time I delete my app and install again,


    I need help, thanks a lot!:confused:
     
  2. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    http://unity3d.com/unity/whats-new/unity-4.3
     
  3. lancerli

    lancerli

    Joined:
    Sep 3, 2013
    Posts:
    4
    I got it. But it changes everytime after I delete my app. Why not unity stores it to keychain to keep it unchange?
     
  4. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    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.
     
  5. ocean_maps

    ocean_maps

    Joined:
    Feb 5, 2015
    Posts:
    4
    So there is no way to identify the device than? Relying on that for limiting installs is horrible if the user reinstalls the app.
     
  6. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    I'd be interested in knowing how Supercell identifies me on Boom Beach. I'm not logged in to Game Center or Facebook yet a fresh install of the game restores my last game state.
     
  7. Martin-S

    Martin-S

    Joined:
    Nov 19, 2012
    Posts:
    11
    iCloud?
     
  8. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    Well I signed out of iCloud and reinstalled the game and it still knows who I am.
     
  9. PushoN

    PushoN

    Joined:
    Jul 5, 2012
    Posts:
    16
    Who knows , why i get different SystemInfo.deviceUniqueIdentifier on iOS every time after re-install app (Unity 5.2 + iOS 9)?
     
  10. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    I believe that is just how it works unfortunately.