I managed to recive a push notification, but i don't know how to handle the click on the push notification that arrive to the application, i want to tell the application when click go to specific activity based on the type of notification, not just open the app (Default behavior)
i know that i can receive
-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo{
NSLog(@"Here I should Recive The notification .... ") ;
//call the commented functions .....
}
in this function , but when i implement it, the notification don't appear and just do what in this function
Try to handle this the click as shown in code,
override didReceiveRemoteNotification like this
If you want to navigate some specific ViewController by tapping pushnotification Just add ViewController navigation code in didReceiveRemoteNotification
That delegate method will only get fired if the application is active. If the application is not running, you should get the notification payload using
launchOptions
in the delegate methodapplication:didFinishLaunchingWithOptions:
and do navigation according to the payload.