3
Solved

Autonotifiation startActivityAndCollapse()

When I use an Autonotification tile with "Hide Notifications" as an option (to collapse the notification shade), I instead get a warning that Autonotification cannot close the shade and I should be using "Close System Dialogs" from the fired task to close the shade.

Unfortunately, a work profile on my device prevents me from using Tasker's accessibility service, so this is not an option for me.

However, other apps I use with quick setting tiles all seem to be able to accomplish this goal without special permissions. As does the QuickTask Tasker plugin.

All of these other apps appear to be using the startActivityAndCollapse() method:

 
Which appears to require no special permissions. Can AutoNotification use this as well?

4 replies

H

The second build seems to work for the closing of the notification drawer without error on Pixel and the Samsung.

On a different device (Nokia T10) it also produces file and notification permissions errors (can't give permissions), presumably because it's a sideload. On that device I've had to revert to Play Store version, so hopefully that will resolve when it is a public release.

Thanks for the fix!

H

Update, while this build does work on a new Pixel, on an older Samsung tabet (Android 11), tapping one of the tiles configured this way produces an error about starting an activity outside the context of an activity (sorry, didn't get the exact error message).

The current beta from the play store does not have this problem.

Ok, I think I fixed that too :)

Can you please try this version? https://drive.google.com/file/d/1Q8qaSwxLWHIjCqk1HKogeYwkynfK9bFz/view?usp=sharing

H

Thank you, that build appears to work when sideloaded. Will we see this in a future Play Store update soon?

Thank you! :) I've changed that now.

Can you please try this version? https://drive.google.com/file/d/1Q8qaSwxLWHIjCqk1HKogeYwkynfK9bFz/view?usp=sharing

Topic is closed for comments