I have made one sample demo for Push Notification with FCM. I am able to received Notification in Back Ground Mode as well as Foreground mode. But my question is:- When my application is in Background Mode Notification received but does not called any single Method so I can do action.
I agreed that when I have clicked on that method it will call one method but not in background.
Method is i have used
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
}
- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
{
}
Please Help Me guys I got stuck.I need it Thanks in Advance. I have read so many links but not able to solved my Problem.
Note:- Please keep in mind I have used Google clouding messaging:- FCM
I have used in Objective c