I'm not using SyncEngine API, so by setting sync_poll_interval in rhoconfig didn't help.
Whereas, Rho::Timer API works for network calls, I want to create something generic which will be available throughout the app.
I'm using rhodes 3.4.2
Any idea how I can do that?
Exit application after a particular time period if kept idle |
1 Replies
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.