Check if a player has joined a room

0 votes
Hello. I would like to know how to check if a player is playing a game or not by checking if he/she is inside a room. I already know how to get all the online players, but I need to know which of these players are idle or inside a game. This way, a player would only invite another player if the latter is not inside a room or in game. I can either use appwarp or app42.
asked May 29, 2016 in Android by Mark Ty (20 points)

1 Answer

0 votes
 
Best answer

Hi Mark,

Whenever a user joins in the room, you can store that roomId as user's custom data using setCustomUserData API. The same can be fetched using getLiveUserInfo API. This way, you will be able to get the required user info whenever needed.

Let me know if you have any other queries.

Thanks.

answered May 30, 2016 by rajeev.etc (1,660 points)
selected May 31, 2016 by Mark Ty
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...