title: How to save the notification title or body in background without clicking on it
body: <p>I am working on an app in which I have to save all the notification coming from the server using firebase. I can save which notification is coming in the foreground and also I can save if notification is coming in the background but in a condition that if I clicked on the notification I can able to save it. But my main concern is if the user swipes the notification or clear the notification that means a user will not click on the notification, then how can I save it. Is there any method? Please help me to find a solution for this.</p>