This repository was archived by the owner on Nov 1, 2022. It is now read-only.
This repository was archived by the owner on Nov 1, 2022. It is now read-only.
Clear notification and download jobs when onTaskRemoved or onDestroy are called #6764
Closed
Description
We were partially cleaning notifications/jobs when onTaskRemoved and onDestroy assuming that they were called one after another, but in reality, after doing some testing is they can be called independently.
When onTaskRemoved
was called onDestroy
wasn't called after, for this reason we have to make sure we clean our resources in both methods to avoid issues like mozilla-mobile/fenix#9884
┆Issue is synchronized with this Jira Task