簡體   English   中英

從iOS通知面板激活應用程序時,是否可以處理所選的本地通知?

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

從本地通知啟動應用程序時,可以使用ApplicationDelegate的application:didFinishLaunchingWithOptions:方法來處理通知,但是當您在通知面板中選擇通知並且應用程序處於后台時,不會調用此方法。

在這種情況下,有沒有辦法處理通知?

當應用程序由於此原因而處於活動狀態時,我想顯示一個特殊的ViewController。

提前致謝!

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

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM