mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
add alert for forbidden push token
This commit is contained in:
parent
08654f3144
commit
e58437ecb2
1 changed files with 14 additions and 0 deletions
|
|
@ -363,6 +363,20 @@ static RootViewManager *rootViewManagerInstance = nil;
|
|||
case LinphoneCallIncomingReceived:
|
||||
if (!CallManager.callKitEnabled) {
|
||||
[self displayIncomingCall:call];
|
||||
} else if ([LinphoneManager.instance lpConfigIntForKey:@"unexpected_pushkit" withDefault:0] > 2) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
linphone_call_decline(call, LinphoneReasonUnknown);
|
||||
UIAlertController *errView =
|
||||
[UIAlertController alertControllerWithTitle:NSLocalizedString(@"Push token for calls is not valid anymore", nil)
|
||||
message:NSLocalizedString(@"Please delete all of your accounts from the server.", nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
UIAlertAction *defaultAction = [UIAlertAction actionWithTitle:@"OK"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction *action) {}];
|
||||
|
||||
[errView addAction:defaultAction];
|
||||
[self presentViewController:errView animated:YES completion:nil];});
|
||||
}
|
||||
break;
|
||||
case LinphoneCallIncomingEarlyMedia: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue