简体   繁体   中英

Is it possible to handle the selected local notification when activing the app from iOS notification panel?

When launching the app from a local notification you can use the application:didFinishLaunchingWithOptions: method of ApplicationDelegate to handle the notification, but this method is not called when you select the notification in the notifications panel and the app is in background.

Is there a way to handle the notification in that case?

I want to show a special viewcontroller when the app becomes active by this cause.

Thanks in advance!

您是否检查了以下委托方法

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM