Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Problem with SystemInfo.deviceUniqueIdentifier on Android

Discussion in 'Android' started by Zed23, Jun 2, 2015.

  1. Zed23

    Zed23

    Joined:
    Apr 3, 2013
    Posts:
    6
    Hi!
    We have our game published on Google Play. In our game we identify players by SystemInfo.deviceUniqueIdentifier.

    Last week we made a new update of our game, before update we have updated our Unity4 to the version 4.6.5f1. After we released new version of our game, we faced the problem that some players devices have changed their id and players lost all progress. We found out that the problem is not on all devices.
    What may cause a change of UniqueIdentifier?
    Thanks in advance!

     
  2. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
    The value of SystemInfo.deviceUniqueIdentifier on Android changed twice in Unity 4.6.x.
    With Unity 4.6.3p2 it should be back to the old value like in Unity 4.5.
     
  3. Zed23

    Zed23

    Joined:
    Apr 3, 2013
    Posts:
    6
    Currently we use Unity4 version 4.6.5f1. According to your answer it should be fixed, but we steel face the problem.
     
  4. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
    Which version of Unity did you use before upgrading to 4.6.5f1? And do you know on which devices the problems exist?
     
  5. Zed23

    Zed23

    Joined:
    Apr 3, 2013
    Posts:
    6
    Our previous version of the game was made on Unity 4.6.3.

    We have issues on such devices:
    1) Nexus 7 2013 - Android 5.1.1
    2) Nexus 7(2012) - Android 4.3
    3) Nexus 10 - Android 5.1
    4) Galaxy Tab3 7.0 - Android 4.3

    But the strange thing is that the problem appears not on all devices of these models.
     
    MrEsquire likes this.
  6. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
    As I wrote earlier, the value of SystemInfo.deviceUniqueIdentifier on Android changed in Unity 4.6.3p2. If your game was built using Unity 4.6.3 (p1 or earlier) then this is probably what causes your issue.
     
  7. jonas-minnberg

    jonas-minnberg

    Unity Technologies

    Joined:
    Oct 8, 2014
    Posts:
    6
    Tablets are affected since they normally have no SIM => No IMEI identifier we can use to create the ID.