android - Getting notifications with accessibilty service if device is muted? -


the problem is: accessibility service doesn't called on new notification, if device muted (i guess on android 5+). found nothing on internet. there way enable accessibility service muted devices?

i need app "autoresponder whatsapp" notifications no matter phone state.

this interesting tidbit you've found here. feel not intended behavior, none less think best solution use notificationmanager , setinterruptionfilter interruption_filter_all.

notificationmanager mnotificationmanager = (notificationmanager) getsystemservice(context.notification_service);  mnotificationmanager.setinterruptionfilter(notificationmanager.interruption_filter_all); 

this disable dnd mode , accessibilityservice should start receiving events again without restarting app or anything.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo