Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Arunprakaash G · Apr 15, 2021 at 01:57 AM · Player Datadatamultiplayergame managerphoton

How to get data online players?

basically i am working on a multiplayer game i wanted to invite players who are available online right now any idea about getting information?

Comment

People who like this

0 Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ivan Cai ♦ · Apr 15, 2021 at 07:30 AM 1
Share

Sorry, I don't understand your needs. Do you want to get player data and the data of all online players? Could you please clarify the issue a little bit more clearly?

avatar image Arunprakaash G Ivan Cai ♦ · Apr 16, 2021 at 03:07 PM 0
Share

i want to get the player username of all online players and once they are listed i can send invite to them to join my room and play

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Ivan Cai · Apr 20, 2021 at 02:59 AM

Since playfab is a stateless service and don’t have a mechanism to check if the player is online, as long as the sessionticket is valid, the client can call the client API. So it is hard to check whether the players are online or offline. You need to create a system to check if the player is online.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Arunprakaash G · Apr 20, 2021 at 04:29 AM 0
Share

can you share any articles or tutorials on how to create that system?

avatar image Ivan Cai ♦ Arunprakaash G · Apr 20, 2021 at 09:12 AM 0
Share

There is a related thread, I hope it helps you

avatar image

Answer by esenkleiter · Sep 08, 2021 at 01:40 AM

@Ivan Can your related thread is 4 years old and mentions a "presence" function:

We will be providing a "presence" style system in a future update, though we don't have a specific date for that just yet.

Do you have any updates on this?

Comment

People who like this

0 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Sep 08, 2021 at 09:09 AM 0
Share

PlayFab core service is based on RESTful API, which is stateless. You need a real-time and long-connection system to monitor the state of friends. This feature is served by Party at present. Please refer to Azure PlayFab Party overview - PlayFab | Microsoft Docs.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Where to store photon gameStates. 1 Answer

    Hi! I login to the game with my PlayFab username. After I'm entering a room created by Photon. My purose; When I enter the room, I want to see me and other users PlayFab Username or display name. What should I do? 1 Answer

    Is it possible to store data (tables), modifiable from the Playfab developer dash? 1 Answer

    Questions on storing a list of strings on PlayFab to be accessed by all users, or similar methods 2 Answers

    How to store a growing collection of data? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges