Reputation: 533
I would like to save all received notifications in a database.
This works if someone clicks on the notification or the notification is received while the app is in the foreground.
But the challenge is to save the notification while the app is terminated (loud push).
After the launch of the terminated app the function didFinishLaunchingWithOptions is called but the launchOptions aways is nil so I can't handle push notifications.
Does anybody have any idea to solve this problem?
Thank you in advance.
Upvotes: 3
Views: 3205
Reputation: 533
Thanks to Goergisn.
The solution to my problem:
Upvotes: 3