如何知道我的应用程序是否禁用了“显示通知"? [英] How to know if Show Notification is disabled for my app?

查看:75
本文介绍了如何知道我的应用程序是否禁用了“显示通知"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以跟踪用户在我的应用程序的设置/应用程序信息"页面中是否禁用/取消选中显示通知"?

Is there any way to track whether the user has "Show notifications" disabled/unchecked in the Settings/App Info page of my app?

推荐答案

简单:您不能. 在Google I/O 2012中回答: https://www.youtube .com/watch?v = Yc8YrVc47TI& feature = player_detailpage#t = 1682s

Simple: You cant. In Google I/O 2012 answered: https://www.youtube.com/watch?v=Yc8YrVc47TI&feature=player_detailpage#t=1682s

更新:

您可以检查用户是否可以在状态栏中看到通知,即是否可以通过Android版本> = 4.3的用户查看通知(在代码中).

you can check if the user can see the notification in the status bar i.e. 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

这篇关于如何知道我的应用程序是否禁用了“显示通知"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆