question

David Springate avatar image
David Springate asked

Does Playfab support multi-user sign-in?

My title supports local and online multiplayer splitscreen.
How can I support this on Playfab?

For example:
On Xbox or Playstation, I want to be able to have multiple users signed in to XBL or PSN at once on a single machine.

Does Playfab support this?

10 |1200

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

Hernando avatar image
Hernando answered

PlayFab does not support multi-user sign in one device, but you can modify SDK to record multiple player's Session Tickets to reach it. There is a thread you can get more information from: https://community.playfab.com/questions/10901/multiple-accounts-on-one-device.html

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.

David Springate avatar image David Springate commented ·

Thanks Hernando.

That's helpful, I can certainly keep the Session Tickets for each user but I can't use that matchmaking I think?

The apis for CreateMatchmakingTicket() and GetMatchmakingTicket() don't accept Session Tickets but player entityToken for the creation call. So I guess this doesn't work with matchmaking?

I have another post awaiting moderation that goes into greater detail.

0 Likes 0 ·
brendan avatar image brendan David Springate commented ·

No worries - you can get Entity Tokens from Session Tickets (https://api.playfab.com/documentation/Authentication/method/GetEntityToken).

0 Likes 0 ·
David Springate avatar image
David Springate answered

Looks to me like it doesn't when it comes to matchmaking?
I've been working my way through the quick start guide here:
https://docs.microsoft.com/en-gb/gaming/playfab/features/multiplayer/matchmaking/quickstart

I'm currently using LoginWithCustomID() and have logged in multiple users.

I create a matchmaking ticket successfully using PlayFab::PlayFabMultiplayerAPI::CreateMatchmakingTicket().

Then I try to get a matching ticket using PlayFabMultiplayerAPI::GetMatchmakingTicket().

This calls my callback with 'WaitingForMatch' correctly when only one user has logged in but when multiple users call LoginWithCustomID(), this then fails with:
PlayFabErrorMatchmakingUnauthorized (2056)
"MatchmakingUnauthorized"
"Only a user in the ticket can access it."


I assume I'm doing something wrong here but I can't see how else I can have multiple authenticated users.

@Andy

1 comment
10 |1200

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

Andy avatar image Andy ♦♦ commented ·

Depending on which SDK you're using, you can try out the new instanced API classes. It looks like you're using the cpp sdk. You can try out the new PlayFabMultiplayerInstanceApi:

https://github.com/PlayFab/XPlatCppSdk/blob/master/code/include/playfab/PlayFabMultiplayerInstanceApi.h. That allows settings to be cached independently for each instance, so you'd have one per player. Those are fairly new, so let us know how it goes.

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.