How to count users active in a given period of time

0 votes
Our game has a requirements to show number of active users in last 10 minutes. An active user is considered a user that interacted somehow with App42 cloud by calling App42 api functions (all our interaction with App42 takes place via Custom Code).

The question is how to count people that interacted with App42?
asked Feb 14, 2015 in App42 Cloud API-BaaS by vladislav (10 points)

1 Answer

0 votes
Hello Vladislav,
 
For this you have to manage it using Storage service. In which you can insert/update a json document to maintain the status of user when ever he/she login to app. And you can fetch the document based on the time field using order by clause. 
 
Have a look at this  link for the code snippet & let us know if it helps.
 
Thanks
/sachin
answered Feb 15, 2015 by SACHIN25 (190 points)
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
...