I want to keep the push notification that will arrive when the application is in the background. I know about
-(void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
This delegate method is called when the application is in the foreground or in the background (if the user simply clicks on the notification received).
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
This method is called only once when the application starts.
What if the user does not click on the notification? How to save the data of this notification in the database of my application in this case?
Rivan source share