CallKit - "Touch to return to call" 未删除
CallKit - "Touch to return to call" not removing
我在我的项目中使用了 CallKit。 "Touch to return to call" 即使在呼叫被我们呼叫的用户拒绝后仍然显示。
let provider = CXProvider(...) // this object declared globally
provider.reportCall(with: UUID(), endedAt: Date(), reason: CXCallEndedReason.declinedElsewhere)
我正在使用上面的代码避免这种情况。但对我没用。
要结束通话,请使用 cxendcallaction 并添加 cxtransaction 对象。
确保您使用的是正确的 uuid。
CXEndCallAction *action = [[CXEndCallAction alloc] initWithCallUUID:callUUID];
[self.callController requestTransaction:[CXTransaction transactionWithActions:@[action]] completion:completion];
我在我的项目中使用了 CallKit。 "Touch to return to call" 即使在呼叫被我们呼叫的用户拒绝后仍然显示。
let provider = CXProvider(...) // this object declared globally
provider.reportCall(with: UUID(), endedAt: Date(), reason: CXCallEndedReason.declinedElsewhere)
我正在使用上面的代码避免这种情况。但对我没用。
要结束通话,请使用 cxendcallaction 并添加 cxtransaction 对象。 确保您使用的是正确的 uuid。
CXEndCallAction *action = [[CXEndCallAction alloc] initWithCallUUID:callUUID];
[self.callController requestTransaction:[CXTransaction transactionWithActions:@[action]] completion:completion];