question

dotung avatar image
dotung asked

get status online/offline player

How can I get the player's online / offline status. The problem I have right now is that an account can log in at the same time.

apis
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

·
Citrus Yan avatar image
Citrus Yan answered

PlayFab is a stateless service, any clients can make API calls as long as its session ticket is still valid, hence it’s hard to tell whether the players are online or offline, this is also one of the reasons why PlayFab does not provide such API to get player’s online/offline status. Moreover, Login APIs are anonymous, which means that any clients can call them as long as they have valid credentials (username/password, 3rd party platform tokens, etc. ) and use the returned session ticket to make successive API calls, acting like these clients are all “logged-in”, this is the reason why an account can “log in” on multiple clients at the same time. I think the problem you are having can convert to the problem of how to prevent duplicate logins, about this, we have a fairly complete discussion here: How to prevent duplicate login?

10 |1200

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

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.