(I am opening thread for this issue - subject of other thread is not relevant here)
I have app with service that run in foreground which runs echo player with radio station,
also same app has webview that displaying web site
I have put timer in the service that every 10 minutes refresh the radio + check if web page is still open,
and on the web page I have timer that checks if service is still running and reopen if needed.
after 2 days +- the app is closing it self, without any error / crash / notification.
so both timer I have put is not been able to help here.
Erel you send me some article of app need to be reopen after few days, I have few questions:
1. why is it closing without indication - can I add some debug to understand why it closing?
2. in the article you send it is talking about 2 solutions, SartServiceAt, and watchdog, which one to use? and can you send code example for opening app using other app (watchdog app)
3. If I move service to background will it change something? and why if webview is open the app still closes (the issue I had was with the service closing, but now I have also webview opened and it still close my entire app)
4. Any other idea how to prevent the app from closing? (without additional WD app)
Thanks
I have app with service that run in foreground which runs echo player with radio station,
also same app has webview that displaying web site
I have put timer in the service that every 10 minutes refresh the radio + check if web page is still open,
and on the web page I have timer that checks if service is still running and reopen if needed.
after 2 days +- the app is closing it self, without any error / crash / notification.
so both timer I have put is not been able to help here.
Erel you send me some article of app need to be reopen after few days, I have few questions:
1. why is it closing without indication - can I add some debug to understand why it closing?
2. in the article you send it is talking about 2 solutions, SartServiceAt, and watchdog, which one to use? and can you send code example for opening app using other app (watchdog app)
3. If I move service to background will it change something? and why if webview is open the app still closes (the issue I had was with the service closing, but now I have also webview opened and it still close my entire app)
4. Any other idea how to prevent the app from closing? (without additional WD app)
Thanks