0

Hi there i would like to know which app delegate method get called when my app launch from a push notification (When the app was previously in the background ?)

EmptyStack
  • 51,114
  • 22
  • 146
  • 177
clide313
  • 1,507
  • 2
  • 18
  • 27

3 Answers3

2
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

Also check this answer.

Community
  • 1
  • 1
Usman.3D
  • 1,753
  • 3
  • 16
  • 27
1

Check the documentation of UIApplicationDelegate

Jhaliya - Praveen Sharma
  • 31,542
  • 8
  • 70
  • 75
1

Implement the didReceiveLocalNotification: method in your AppDelegate.

- (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {

    // Handle the notification here
}
EmptyStack
  • 51,114
  • 22
  • 146
  • 177