【问题标题】:Is there any way to get access to all android notifications?有什么办法可以访问所有的android通知吗?
【发布时间】:2016-07-31 05:24:13
【问题描述】:

我的意思是,如果我想访问通知抽屉中的所有通知。只是想知道 pushbullet 和其他可穿戴配件是如何做到的?阅读所有通知并将它们推送到网络服务器/特定设备。

【问题讨论】:

    标签: android push-notification notifications android-notifications pushbullet


    【解决方案1】:

    您可以使用 NotificationListenerService,它需要 BIND_NOTIFICATION_LISTENER_SERVICE 权限。

    这里是链接 https://developer.android.com/reference/android/service/notification/NotificationListenerService.html

    和示例代码供参考 https://github.com/pgajbhiye/NotificationsSample

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-02-06
      • 2014-05-22
      • 1970-01-01
      • 1970-01-01
      • 2014-07-01
      • 2017-10-01
      • 1970-01-01
      相关资源
      最近更新 更多