I have a working project in Tasker, the famous Android automation app. Its main profiles monitor the system logs (via the logcat
trigger) for an event, and run tasks that optionally display a pop-up and enable Do Not Disturb.
Everything works as expected in Tasker, but when I export the project as a standalone app, these profiles fail to trigger.
I suspect I'm missing something about how exported apps work in the background. The overall outline is that I would like to create an app that waits in the background until an event occurs, then execute a task - just like Tasker itself.
A TaskerNet link to my project is attached below. It is designed to trigger when certain Moto Mods are connected, so unless you have a Moto Z series phone, you'll need to change the triggers to test it.
Edit: Adding the "Ask Permissions" command for reading system logs and managing Do Not Disturb seems to have helped. I have yet to test the logs portion, but am getting the proper prompts from the exported app now.