2017-09-05 5 views
3

私は、コールキットを統合したVoipアプリを持っています。 iOS 10ではうまくいきましたが、現在はiOS 11で問題が発生しているようです(iOSの最新情報)。アプリケーション: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を処理することができます。

関連する問題