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

前端 未结 5 1093
情书的邮戳
情书的邮戳 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:20

    It seems that

    onTaskRemoved

    of the Service DOES get called when the user kills the application task (by swiping out the app in the "task manager". I am able to remove the Notification from here.

提交回复
热议问题