question

Boyan Iliev avatar image
Boyan Iliev asked

Cross-Title Master Player Account linking

Hello,

We are working on the account linking logic in our games (titles within a single studio). When linking within a single title, the flow seems to be straight forward. Yet we have concerns on how account linking is handled cross-title. Here is our use-case:

  1. Player can install and launch a mobile game (title A)

  2. This creates a "guest" playfab account used to log him in every time he starts the game from this device

  3. The same player installs and launch another mobile game (title B) edited on a different device

  4. This creates 2nd "guest" playfab account

  5. The player wants to add the same recoverable login method to both games - his personal email for instance

  6. How should this happen as we basically try to link 1 email to 2 different playfab accounts?

Thank you, Boyan

Account Management
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

·
Gosen Gao avatar image
Gosen Gao answered

PlayFab has a master player account which is a player entity that is shared by all titles within your studio. And the login methods are linked to the master player account. So, for your case, you can use the same login credential to login the Title B, and there won’t be 2 different accounts. Then you can add a recoverable login method to this account. And player can use this method to login both Titles.

5 comments
10 |1200

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

Boyan Iliev avatar image Boyan Iliev commented ·

Thank you for the answer @Gosen Gao . You made me notice that there is a critical piece that I've not mention. For steps 1 and 3 the player is using different devices. Let's say and iOS and and Android one.

In this case there is no real way to determine if these are 2 different users or the same user with 2 different devices. This means having 2 different master player accounts from what I understand.

At this point, if the user tries to use the same email to add recoverable login method, how should we "link the master player accounts"?

Thank you, Boyan

0 Likes 0 ·
Gosen Gao avatar image Gosen Gao Boyan Iliev commented ·

Yes, you are correct. If player login with device id on two different devices, then there will be two different master player accounts. Those accounts cannot be merged into one, and they cannot use same email as recoverable login method. For such case, player should add recoverable login method before they change device, so the steps should be like:

  1. Player can install and launch a mobile game (title A), let say on an Android device.

  2. This creates a "guest" playfab account used to log him in every time he starts the game from this device, using LoginWithAndroidDeviceID.

  3. Remind the player that if he wants to use this account to play this game or other related games on other device, he should add a recoverable login method(Account Management - Add Username Password - REST API (PlayFab Client) | Microsoft Learn).

  4. The same player installs and launch another mobile game (title B) on a different device (iOS), with LoginWithEmailAddress.

  5. Use Account Management - Link IOS Device ID - REST API (PlayFab Client) | Microsoft Learn to link the iOS device to make player easy to login on this device.

0 Likes 0 ·

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.