android - Check if my app can show notification -


in android 5, aka lollipop, how can check if app can show notification? (by using sdk)

i want warn user if system blocked notifications.

you can create notification , query notificationlistenerservice whether notification displayed. returned statusbarnotification should contain enough metadata identify notification.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -