How to store push notification message while in background

Hi folks, I am using push notification plugin.I got the notification in ios and when I tapped on that notification that particular message will be stored in localDB.but if I clear the notification tray, the message won’t be to get the message of cleared notification and store.