Restart App after crash - best way?

Hi,

what can be the best way to restart the App after crash?
After some time (in most cases 1-3 days) the app crash and will be exited with message about “notice, feedback…”.

Using MQTT, connection should be stable - is in same network (even it should not be a problem for crash). No more plugins already inside.

What can be the best way to restart the app and have it in front again on a not rooted Android tablet?

BTW: is there a way to get a remote log like syslog to find out where here could be the problem?
(or logfile - syslog as feature would be great of corse :wink: …)

THANKS!

If the app crashes you have to press the launcher icon to launch it again. Or I suppose you could use Google Assistant to launch it too. I’m not aware of any way to automatically relaunch an Android app after a crash. You can try Googling it to see if there are any other options. Maybe there’s an app service available in Google Play that can monitor applications to keep them running at all times.

…and as we discussed in weeks prior. I don’t think you can call MQTT stable until the 4.1.5 release is published. Hoping to begin publishing that tomorrow. I kind of doubt that is causing your crash though. Could be something else in your project.

ok, I will try then after update again and tell you :wink:

I thought somebody know an app like tasker what can control/restart the runnig apps (tasker can not).

What about a file log or syslog option - any idea? :wink:

Thanks!

That’s not available in the Home Remote app.

In Tasker under “launch app” there is a option for “Always start new copy”. That seems to restart the app.

@tsaaek Thanks, I have tried, but this will restart the app every time - even if it is still running.
Have not found the condition to check the running or dead app.

@bill - it was crashing again with new version (and only MQTT inside), will create a minimized project and upload it after next crash. Maybe you have an idea…