Sign In Register

How can we help you today?

Start a new topic

Game Spark don't use unsupportedIdentifier for Unity SDK

I've just found the code in PlatformBase.cs. This code could potentially lead to the bugs. And do not correct return device id for WebGL. See code below


            if (Application.platform == RuntimePlatform.PS4 || Application.platform == RuntimePlatform.XboxOne)
                DeviceId = SystemInfo.deviceUniqueIdentifier.ToString();
                DeviceId = PlayerPrefs.GetString(PLAYER_PREF_DEVICEID_KEY);
                if (DeviceId.Equals(""))
                    DeviceId = System.Guid.NewGuid().ToString();

                    PlayerPrefs.SetString(PLAYER_PREF_DEVICEID_KEY, DeviceId);
                DeviceId = SystemInfo.deviceUniqueIdentifier.ToString(); //BUG IS HERE

   This code should be replaced to recommended Unity flow for checking the device id with unsupportedIdentifier property.

And also this code will not works for WebGL because:

Ah ok, I've found this place. Thanks. 

However, that code above should not affect WebGL, because it is auto-generated as a normal GUID on this platform.


Hello Sergii,

Thank you for reporting this issue, I will give a look at it very soon.


Login to post a comment