![](/img/trans.png)
[英]Handle tap on local notification when app is terminated - iOS - Swift
[英]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.