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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -