How to know if Show Notification is disabled for my app?
This question already has an answer here:
Simple: You cant. In Google I/O 2012 answered: https://www.youtube.com/watch?v=Yc8YrVc47TI&feature=player_detailpage#t=1682s
update:
you can check if the user can see the notification in the status bar ie able TO CHECK (in the code) IF THE NOTIFICATION IS VISIBLE TO THE USER where android version >= 4.3.
http://developer.android.com/reference/android/service/notification/NotificationListenerService.html#getActiveNotifications%28%29
you can't. There is no any functions which to be used to get the state of "Show notifications". In Google I/O 2012 answered: https://www.youtube.com/watchv=Yc8YrVc47TI&feature=player_detailpage#t=1682s, in 48:05,the leader answered the question use a simple word:NO.
链接地址: http://www.djcxy.com/p/20186.html上一篇: 用于时间序列预测的深度学习神经网络
下一篇: 如何知道我的应用显示通知是否被禁用?