Is there a way I can check programatically whether my app's notification is currently running(shown)?
That is to say that NotificationManager.notify()
was invoked.
Is there a way I can check programatically whether my app's notification is currently running(shown)?
No.
That is to say that NotificationManager.notify() was invoked.
You called notify()
. Hence, you already know if notify()
was called. You also know if your code calls cancel()
or cancelAll()
. You will also know, via the various PendingIntents
and flags, if the Notification
goes away based upon user action. Hence, you have all of the information yourself to determine if the Notification
is on-screen or not.
However, savvy developers will write their apps such that they do not care if their Notification
is on-screen or not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With