question

agniesportsyt avatar image
agniesportsyt asked

How to know friend's Online/Offline status?

Is there a way to know the online/offline status of a friend? Is there any api that can be used for this or if not, please provide an alternate solution.

apisShared Group DataFriends
10 |1200

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

Ivan Cai avatar image
Ivan Cai answered

Playfab is a Web API-style and stateless service, we don’t have a mechanism to check if the player is online(there's also no Logout API call, for instance). You can see when the player last signed in by checking the LastLogin property of TitleInfo, and you may need to implement a mechanism to set and change the value of the UserData(key: LastUpdated) at regular intervals when the player is playing to help check the player’s “login” status more accurately. For more details, please refer to this thread.

10 |1200

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

Mark Nagy avatar image
Mark Nagy answered

Hi, maybe this will help some others, who needs to deal with this. It helped me: https://www.youtube.com/channel/UC2-tEpkeTgnRcDK19f2EmGQ

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.