iOS开发笔记

CallKit 执行[callController reques

2017-06-12  本文已影响178人  98fb1c598953

执行

[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勾上

上一篇下一篇

猜你喜欢

热点阅读