1 of 1 people found this helpful
I'm not sure what your question is. How to use Rho::Timer? How to exit the app? How to detect idle? (Define "idle"!) Something else?
What platform(s) are you writing for?
FYI, for iOS, if you submit to the App Store, Apple will reject any app that has a "quit" button, or that quits on it's own. iOS apps should only exit when the user explicitly closes the app using the system-wide close actions. (e.g. task manager).
Instead of actually exiting the app, consider locking the screen/going to inactive background. (But on most platforms, that will happen by default anyway - in fact, you have to go out of your way to circumvent it!)
Is this an existing, "legacy" app? I certainly would not be using Rhodes 3.4.2 to write a new app today. The app won't be able to support current mobile OSs.
Hi Jon..thanks for your reply.
Yes, it is an existing app and I'm concerned only for android platform.
Being idle, would mean the user has not interacted with the application for a certain amount of time.
I would like to end the session of the user, meaning the app will redirect to the login screen during this scenario.