Swift-iOS: Save all Remote-Notifications in Database (App is terminated)

Hi there, 

I would like to save all received notifications in a database.
This works if someone clicks on the notification or the notification are received while the app is in the foreground.

But the challenge is to save the notification while the app is terminated (loud push).

If I tap on App Icon the function
Code Block
application:didFinishLaunchingWithOptions:
is called with launchOptions set to nil.

Does someone know a solution to this challenge?

best regards
Answered by LuminiCode in 645516022
Accepted Answer
Swift-iOS: Save all Remote-Notifications in Database (App is terminated)
 
 
Q