Noob to Automate here. Very basic flow consisting of error trap -> battery level -> publish to MQTT --> delay .> loop back to top. Running app on cheap Chinese tablet.
Works great when Automate is in foreground. Publishes battery level every 2 minutes. But when I put my main app in foreground, it seems like Automate flow quits. I have basically all privileges granted and turned battery saver off. Read the link I found in other topic on the subject and still no joy.
My guess is Automate is intended to run in background, so I am definitely missing something.
Any help would be appreciated.