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.
Thanks to Goergisn.
The solution to my problem:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With