When I'm clicking on background notification, I get a response which I need to use for later so how do I implement this saving, when I click on the background notification?
There is no need to save, if it is needed only when a user clicks a notification. There is data
field for custom data in showNotification. data
will be available in notificationclick event.