Reputation: 1427
When my app is in minimized state and when that time push notification alert comes with two buttons close and view. I want to open particular screen in app when user click view button on alert.
When app is open state that time I can handle push notification by using below method - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
If any one knows how to handle push notification alert buttons when app is in minimized state please help me. Thanks in advance.
Upvotes: 0
Views: 482
Reputation: 452
Yeah
When The App is brought into running state via Notifications..This method is fired
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
You can then retrieve the notification received from the launchOptions
dictionary and open the appropriate screen.
Upvotes: 1