Removed

UserProfile.legacyId

Obsolete legacyId returns playerID from GKPlayer, which became obsolete in iOS 12.4 . id returns playerID for devices running versions before iOS 12.4, and the newer teamPlayerID for later versions. Please use IUserProfile.id or UserProfile.id instead.
Upgrade to id
public string legacyId;

Description

Returns the ID provided in the Apple GameKit by GKPlayer.playerID (deprecated and marked obsolete in iOS 12.4).

For devices running iOS version 12.4 and later, IUserProfile.id returns GKPlayer.teamPlayerID.

For devices running iOS version 12.3 and earlier, IUserProfile.id returns GKPlayer.playerID.

Use IUserProfile.id instead of UserProfile.legacyId. Only use UserProfile.legacyId if you need to access GKPlayer.playerID to migrate player data in your existing project.


Did you find this page useful? Please give it a rating: