Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
handleActionWithIdentifier:forRemoteNotification:withResponseInfo:在回复iOS 10时启动应用程序_Ios_Objective C_Push Notification_Apple Push Notifications - Fatal编程技术网

handleActionWithIdentifier:forRemoteNotification:withResponseInfo:在回复iOS 10时启动应用程序

handleActionWithIdentifier:forRemoteNotification:withResponseInfo:在回复iOS 10时启动应用程序,ios,objective-c,push-notification,apple-push-notifications,Ios,Objective C,Push Notification,Apple Push Notifications,我正在使用 (无效)申请:(UIApplication*)申请 handleActionWithIdentifier:(可为空的NSString*)标识符 forRemoteNotification:(非空NSDictionary*)用户信息 withResponseInfo:(非空NSDictionary*)responseInfo completionHandler:(非空(^)()completionHandler 回复推送通知。在iOS 9下,我可以在不打开应用程序的情况下回复,但在iO

我正在使用

(无效)申请:(UIApplication*)申请 handleActionWithIdentifier:(可为空的NSString*)标识符 forRemoteNotification:(非空NSDictionary*)用户信息 withResponseInfo:(非空NSDictionary*)responseInfo completionHandler:(非空(^)()completionHandler

回复推送通知。在iOS 9下,我可以在不打开应用程序的情况下回复,但在iOS 10下,它会自动启动应用程序

UIBackgroundFetchResult fetchResult = UIBackgroundFetchResultNewData
completionHandler(fetchResult);
在watchOS 3中,我无法回复推送Apple Watch的请求
关于如何解决这个问题有什么想法吗?

回复
意味着处理推送通知?使用UIUserNotificationActionBehaviorExtInput处理推送通知