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:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.