With all the projects that I worked on, there was no way to locally store this information if the push notification was rejected. In all these cases, we used a small file on the server to which the application would connect and pull when it was activated again. The application also had a place where the user could see all his notifications, which, again, were stored on the server for quick retrieval.
When I understand that push notifications are configured, if the notification is rejected, the system discards it. He will do everything he needs to do (for example, update the icon number and play the correct sound), but any additional information related to this notification will be lost.
Thomas hajcak
source share