执行
[callController requestTransaction:transaction completion:^(NSError * _Nullable error) {
if (error) {
NSLog(@"Error requesting transaction: %@",error);
} else {
NSLog(@"Requested transaction successfully");
}
的时候报错:Error requesting transaction: Error Domain=com.apple.CallKit.error.requesttransaction Code=1 "(null)"
解决办法是: 项目->targets->capabilities->background mode设置on ,把Voice over IP勾上
网友评论