I have set up a shape to serve as a button with this formula for color:
$if(ni(count)>0, gv(blue), gv(grey))$
I have also mapped its touch action to dismiss all notifications.
While it works as intended, suddenly,even though I have notifications active, the button color doesnt change to blue and the touch action “dismiss all notifications” doesnt dismiss them.
Of course I have tripple checked kwgt permissions and it does have permissions to access all notifications.
Right now I just disabled and re-enabled said permissions to see if that fixes anything. Last time it stopped working, it just started working again right out of the blue.
I have a xiaomi phone and there’s an app “hidden settings” for it and it gives access to “notification listener permission”.
If you use Tasker you can also reach that setting through Tasker’s “Android settings” menu found under “more” menu. Its called “Notification access service” there.