Hello,
I started to use Automate and I find it very powerful yet easier to configure than some well-known alternatives...
I found one small incompatibility with the way my tablet is configured.
Since Android 5.x it is possible to define secondary users ("full, "restricted", or "guest").
I
would like to create an Automate flow that performs an action, only if
the user currently using the device is the "primary" user and a specific notification exists for this user.
The flow can run also in the background, when the secondary user is using the device.
When I use the "Notification posted ?" block, it works good as long as I stay connected under the same user.
When I switch to second user, the execution stops at this block with a "java.lang.IllegalStateException".
This exception is only transient, because when I log in again as the primary user, this exception is not generated anymore.
However, Automate seems to consider this exception as fatal and automatically disables the "Enable notification access" permission, and also stops the flow.
I need to re-add the permission again everytime that I switch users.
Also, it would be great to create flows based on the event generated when a user switch happens (Intent.ACTION_USER_BACKGROUND).
Is there a way to support this multiple users configuration ?
Thanks in advance,
Best regards,
metatech