question

andrearossini avatar image
andrearossini asked

Unity iOS - Device unique identifier

Hi,

we are updating a project released with Unity 5.3.8f1 and XCode 8.2.1. Now we're using 5.6.3p4 and XCode 9.0.

In this game players can login with Facebook or they can use a custom ID generated with UnityEngine.SystemInfo.deviceUniqueIdentifier.

On Android everything works fine.

On iOS we aren't able to test the login flow cause the SystemInfo.deviceUniqueIdentifier always changes after every update/installation. This is because that call, on iOS, returns the VendorIdentifier (which change when all vendor's apps are unistalled).

Have you ever had similar problem? How did you handle it?

Based on Apple documentation, that ID should works different between Ad-Hoc Distribution apps and App Store Distribution apps. I saw that this problem is present alsp when I update my app through TestFlight.

Any idea?

Best regards,
Andrea

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Yes, Apple generates a unique identifier for your apps when the first one is installed, and then deletes if when the last one of your apps is uninstalled. We talk about this specific issue in our login best practices guide, which I'd recommend having a look at: https://api.playfab.com/docs/tutorials/landing-players/best-login

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.