You can never delete it, but if your application receives a notification (this will not happen in this case) when it is in the background, the notification will be queued and delivered to the application when it appears again (if the application is not killed c) .
If you do not want notifications that occur when your application is in the background, which will be delivered after it appears, you can remove the listener in the methods that you specified.
In this case, in fact, it does not matter.
source share