How to remove all notifications when an android app (activity or service) is killed?

前端 未结 5 1060
情书的邮戳
情书的邮戳 2020-12-31 09:20

I have an app with an activity and an intent service running in the background.

There\'s also a notification which shows a progress bar with the progress of the backg

5条回答
  •  一整个雨季
    2020-12-31 10:12

    You can not track if application is killed from Activity or Application class.

    I found a solution for this in the following link : Cancel notification on remove application from multitask panel

    Please try this.

提交回复
热议问题