mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 04:26:27 +00:00
fix devices < ios13 can not display incoming call
This commit is contained in:
parent
a9952c479d
commit
dca88588d4
1 changed files with 10 additions and 8 deletions
|
|
@ -363,7 +363,8 @@ static RootViewManager *rootViewManagerInstance = nil;
|
||||||
case LinphoneCallIncomingReceived:
|
case LinphoneCallIncomingReceived:
|
||||||
if (!CallManager.callKitEnabled) {
|
if (!CallManager.callKitEnabled) {
|
||||||
[self displayIncomingCall:call];
|
[self displayIncomingCall:call];
|
||||||
} else if ([LinphoneManager.instance lpConfigIntForKey:@"unexpected_pushkit" withDefault:0] > 3) {
|
} else if(@available(iOS 13.0, *)) {
|
||||||
|
if ([LinphoneManager.instance lpConfigIntForKey:@"unexpected_pushkit" withDefault:0] > 3) {
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
linphone_call_decline(call, LinphoneReasonUnknown);
|
linphone_call_decline(call, LinphoneReasonUnknown);
|
||||||
UIAlertController *errView =
|
UIAlertController *errView =
|
||||||
|
|
@ -378,6 +379,7 @@ static RootViewManager *rootViewManagerInstance = nil;
|
||||||
[errView addAction:defaultAction];
|
[errView addAction:defaultAction];
|
||||||
[self presentViewController:errView animated:YES completion:nil];});
|
[self presentViewController:errView animated:YES completion:nil];});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case LinphoneCallIncomingEarlyMedia: {
|
case LinphoneCallIncomingEarlyMedia: {
|
||||||
if (linphone_core_get_calls_nb(LC) > 1 ||
|
if (linphone_core_get_calls_nb(LC) > 1 ||
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue