简体   繁体   English

出现CallKit“呼叫失败屏幕”

[英]CallKit “call failed screen” appears

When call is disconnected by receiver(after receiving the call) than call failed screen appears, I don't want this screen to be displayed. 当接收方断开呼叫时(接到呼叫后)出现呼叫失败屏幕,我不希望显示此屏幕。 All my delegate methods are working. 我所有的委托方法都有效。 How can I make a successful call? 我怎样才能成功通话? What cause the call to be failed? 是什么导致电话失败?

To end the call, use CXEndCallAction and add the CXTransaction objects. 要结束调用,请使用CXEndCallAction并添加CXTransaction对象。 Make sure you are using the correct uuid . 确保使用正确的uuid

CXEndCallAction *action = [[CXEndCallAction alloc] initWithCallUUID:callUUID];
[self.callController requestTransaction:[CXTransaction ...Actions:@[action]] completion:completion];

I ran into same situation :P But this is the solution: 我遇到了同样的情况:P但这是解决方案:

- (void)provider:(CXProvider *)provider performEndCallAction:(CXEndCallAction *)action {
    /* Perform your action after ending the call */
    NSLog(@"performEndCallAction");
    [action fulfill];
}

When performEndCallAction gets called by CallKit, execute [action fulfill] in it :) 当CallKit调用performEndCallAction时,执行[action fulfill] :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM