Notification shows after android app is force closed

后端 未结 4 2007
[愿得一人]
[愿得一人] 2020-12-21 15:13

I have googled this non stop today and could not find anything. My scenario is the following:

I have an Android app that auto replies to incoming messages. I have

4条回答
  •  隐瞒了意图╮
    2020-12-21 15:41

    As far as i can tell you are creating a new NotificationManager object to create the notification and a different notificationManager object to cancel the notifications. You should be using the same object. The way you are doing it, you are not firing any notification with the object in the notifDestroy(), hence probably it doesnt clear the notification for you.

提交回复
热议问题