0

I wanted to delete all my app notification when application killed. I am not using service. So, I can not use onTaskRemoved and I have tried using OnDestroy method to CancelAll notifications. But OnDestroy is not being called when I kill application from task.

Does it possible to clear notification without using service?

Ranjit
  • 833
  • 8
  • 15
  • Here is a similar issue that maybe can help you https://stackoverflow.com/questions/59052033/cancel-notification-when-app-is-removed-from-recentsmemory-list . – Lucas Zhang Mar 25 '21 at 06:23
  • Thanks for the reference @LucasZhang-MSFT. Provided link using service. I wanted to clear all notification without service. Does it possible? – Ranjit Mar 25 '21 at 07:38
  • @Ranjit Have you found out your solution? – Dinh Quang Tuan May 03 '21 at 10:52
  • @DinhQuangTuan, Solutions are available with service implementation. If you can use service then check this link. https://stackoverflow.com/questions/12997800/cancel-notification-on-remove-application-from-multitask-panel – Ranjit May 03 '21 at 11:21

0 Answers0