Notification Listener Service does not work after app is crashed

后端 未结 3 2051
春和景丽
春和景丽 2020-12-18 08:36

I have a problem on my app and I want to report this bug.

I develope the app which can crawls notifications using NotificationListenerService.

It works well.

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 09:24

    I see exactly the same on this. The only "solution" I've found was to have the notification listener running in a separate process. Then if the rest of the app crashes it doesn't stop the listener. So it's only then specifically notification listener service crashes that require the reboot.

    Seems a terrible and over complicated solution though.

提交回复
热议问题