Hi there,
Could you recommend me a simple way to check whether any notification is present or not?
I'd like to toggle my Always on Display based on this state, but unfortunately there is no such State, only Events.
My main problem with the Notification Removed Event is that, there can be many notifications and just because I dismissed one, it doesn't mean that AoD shall turn off.
I even tried incrementing and decrementing a variable after every notification but it was completely unreliable because one notification triggered the New Notification event multiple times, thus incrementing the variable 3-5-10 times.
There must be an easier way, I just couldn't find it yet.
Thank you.