How to identify a user on iOS?

I use LibGDX, and for the Android version for my game, I use the "Get Accounts" permission to identify the user at their Gmail address.

Is their a similar way to identify a user for iOS?

+5
source share
3 answers

According to the App Stores Guide, you should not receive personal user data without first obtaining the user's permission. The only identifier you can use anonymously is identifierForVendor :

 UIDevice.currentDevice().identifierForVendor?.UUIDString 

This identifier is common to all of your applications on the user device. If all applications have been removed from the device, the identifier may change. More details.

+14
source

It’s best to use GameCenter for iOS to identify players. This link contains a bit more information about handling users with GameCenter.

+6
source

According to Apple, you should not identify your users unless you have a good reason to do so.

As @Marat said that you are looking for a UUID, but keep in mind that this value may change (for example, if the user uninstalls your application and does not have any of your other applications).

A possible solution would be to store the UUID value in the keychain, and this way you will always use the same value.

Edit: Since your application is a game, you can use the Apple GameCenter . This will determine the users for you.

+4
source

Source: https://habr.com/ru/post/1245575/


All Articles