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,274
  • 23
  • 147
  • 178
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,791
  • 3
  • 16
  • 27
1

Check the documentation of UIApplicationDelegate

Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76
1

Implement the didReceiveLocalNotification: method in your AppDelegate.

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

    // Handle the notification here
}
EmptyStack
  • 51,274
  • 23
  • 147
  • 178