question

laker avatar image
laker asked

Which param to provide to game from launcher

We are to create a Launcher for games. After a player login in the Launcher, which param to send to games from the Launcher: - SessionTicket - PlayFabId - EntityToken

apissdksunreal
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

The information passed to the game depends on your needs. However, to be able to call PlayFab Entity APIs, you may need to pass an EntityToken into your game, refer to Entity Programming Model - PlayFab | Microsoft Learn. And to call PlayFab Client APIs, you may also need to pass a SessionTicket into your game. You can use EntityToken and Sessionticket to get other information except "NewlyCreated" and "TokenExpiration" properties in login response. So, if that info are required by your game, then you may need to pass that info as well.

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.

laker avatar image laker commented ·

Hello Gasen,

Thanks for your reply, which is really helpful.

"You can use EntityToken and Sessionticket to get other information except "NewlyCreated" and "TokenExpiration" properties in login response."

We want to know: - How to get PlayFabId by using EntityToken and SessionTicket? - What's the APIs to get other information?

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha laker commented ·

>> How to get PlayFabId by using EntityToken and SessionTicket?

You can call Get Player Combined Info API with the SessionTicket to get the PlayFabId. Using this API, you can also get a lot of other information about the player.

>> What's the APIs to get other information?

You can set GetUserAccountInfo option in InfoRequestParameters to true in the Get Player Combined Info API request body to get the LastLoginTime, Entity properties. To get the TreatmentAssignment property, you need to call Get Treatment Assignment API with EntityToken. In addition, the SettingsForUser property can only be obtained in login result, just like the "NewlyCreated" and "TokenExpiration" properties.

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.