Saturday, 30 July 2022

How do I make may Android TV App relaunch after a crash

I'm building a corporate app for android TV that I need to have always in the foreground. Every now and then the app will crash along with the service that will relaunch it. Is there a best practice to ensure the app is always running. What I can't figure out is how to launch after a force stop. The app can be side loaded so we don't have to worry about App Store approval.

The problem is when I use a service worker it will also die since it is attached to the original process https://developer.android.com/reference/android/app/Service

Same issue with the https://developer.android.com/topic/libraries/architecture/workmanager

Any ideas on an approach to basically check if the app is running and if it isn't start it up ? Is there any other event that I can hook into to launch the app ?



from How do I make may Android TV App relaunch after a crash

No comments:

Post a Comment