当我接受Call Call throw CallKit时,音频在callkit中不起作用。
@property (strong, nonatomic) CXProvider * provider;
CXProviderConfiguration * configuration = [[CXProviderConfiguration alloc] initWithLocalizedName:@"Audio"];
_provider = [[CXProvider alloc] initWithConfiguration: configuration];
[_provider setDelegate:self queue:nil];
NSUUID*uuid=[NSUUID UUID];
CXCallUpdate *update = [[CXCallUpdate alloc] init];
update.localizedCallerName = [NSString stringWithFormat:@"%@",[payload.dictionaryPayload valueForKey:@"fromName"]];
[_provider reportNewIncomingCallWithUUID:uuid update:update completion:^(NSError * _Nullable error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
这里是ScreenShot ..接受呼叫后扬声器按钮不起作用。
我正在使用此代码进行NewIncoming Call,我无法找到任何解决方案,请建议
感谢。