Exit application after a particular time period if kept idle

R Rajarshi Ganguly 3 years ago
0 1 0

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?

Please register or login to post a reply

1 Replies

J Jon Tara

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.

CONTACT
Can’t find what you’re looking for?