Time limit for an app or set of apps

Post your questions and help other users.

Moderator: Martin

Post Reply
altufaltu
Posts: 14
Joined: 12 Mar 2013 04:46

Time limit for an app or set of apps

Post by altufaltu » 22 Nov 2013 04:43

What would be a good design if I want to limit time for which an app or a set of apps (mainly games) are active during a day?
e.g. Angry Birds should not be allowed to run for more that 30 minutes in a day.
e.g. Angry Birds & Candy Crush Saga together should not be allowed to run for more than 30 minutes a day.

I can use AppTaskStarted / Ended triggers to account time for a single application and store that in a global variable, but:
1. I guess I can do arithmetic & comparison on triggertime.
2. I wonder if I need to ping for the app be still running every minute (in order to check for time over and close it).
3. I wonder if I can scale to multiple applications in a single flow or I need one flow for each app.

Suggessions / ideas are invited.

Post Reply