question

SL Tech avatar image
SL Tech asked

Not allowing the same email in different games under the same studio

Hi,

I have a test Game and a live Game in a Studio. When I try to create an account, I get an error that

PlayFabError(EmailAddressNotAvailable, Email address not available, 400 BadRequest - Details: Email: Email address already exists.  | )

since the email exists in the test Game.

This does not seem right. Can anyone help with how to handle this situation.

Thanks

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

·
brendan avatar image
brendan answered

Player accounts are at the Publisher ID level, and Titles in a Studio share the same Publisher ID by default. So if you already have a player account with an email address on a Title, you cannot create a different player account with the same email address on another Title that shares the same Publisher ID. The idea is that you have one player account for that person, so that you can do things like share data between games using User Publisher Data.

2 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.

SL Tech avatar image SL Tech commented ·

Thanks for the clarification, Brendan.

So in the new game (within a studio) is there a way to identify that the user is new to the game and so needs the initial setup done wrt their account and settings?

0 Likes 0 ·
brendan avatar image brendan SL Tech commented ·

Yes, there are three relevant events:

https://api.playfab.com/playstream/events/player_created - This only occurs when the account is created, which only happens once for a Publisher ID for the credentials.

https://api.playfab.com/playstream/events/player_added_title - This only occurs when the player signs into a title for the first time, but you always get one for each title for the player (including if the above event fires).

https://api.playfab.com/playstream/events/player_logged_in - And this happens every time the player signs into any title (including the above cases).

So you can use the various events to trigger specific actions based upon whether the player created an account (first time playing any of your games), logged into a title for the first time, or just logged in.

1 Like 1 ·

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.