有什么方法可以访问所有 android 通知吗?

Is there any way to get access to all android notifications?

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

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

这是Link https://developer.android.com/reference/android/service/notification/NotificationListenerService.html

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