2017-09-05 27 views
3

我有一個集成了callkit的Voip應用程序。它在iOS 10中運行良好,現在我似乎在從本機最近通話(iOS最近通話)調用iOS 11時遇到問題。應用程序:continueUserActivity:restorationHandler:未在iOS中調用11

- (BOOL)application:(UIApplication *)application willContinueUserActivityWithType:(nonnull NSString *)userActivityType {} 

- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray * _Nullable))restorationHandler {} 

這兩種方法都不能叫,所以我不能夠處理NSUserActivity INStartAudioCallIntent。我是否錯過了iOS 11中已經發生變化的明顯事物?

在此先感謝。

回答

3

驗證remoteHandle和supportedHandleTypes,兩者都應該類似於您的要求。

callUpdate.remoteHandle = [[CXHandle alloc] initWithType:CXHandleTypeGeneric value:[NSString stringWithFormat:@"%@", phoneno]]; 

configuration.supportedHandleTypes = [NSSet setWithObjects:[NSNumber numberWithInteger:CXHandleTypeGeneric],[NSNumber numberWithInteger:CXHandleTypePhoneNumber], nil]; 

如果把手不匹配,你可以不能夠處理NSUserActivity。

相關問題