From 2fef3046fcdbba301de637e200edba46d6f54052 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 11 Jun 2021 14:25:43 +0200 Subject: [PATCH] fix(ios): make system open tel, sms, mailto and geo links (#881) --- src/ios/CDVWKInAppBrowser.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ios/CDVWKInAppBrowser.m b/src/ios/CDVWKInAppBrowser.m index cf4b6f6..2adcf0c 100644 --- a/src/ios/CDVWKInAppBrowser.m +++ b/src/ios/CDVWKInAppBrowser.m @@ -539,8 +539,9 @@ static CDVWKInAppBrowser* instance = nil; [self.commandDelegate sendPluginResult:pluginResult callbackId:self.callbackId]; } - //if is an app store link, let the system handle it, otherwise it fails to load it - if ([[ url scheme] isEqualToString:@"itms-appss"] || [[ url scheme] isEqualToString:@"itms-apps"]) { + //if is an app store, tel, sms, mailto or geo link, let the system handle it, otherwise it fails to load it + NSArray * allowedSchemes = @[@"itms-appss", @"itms-apps", @"tel", @"sms", @"mailto", @"geo"]; + if ([allowedSchemes containsObject:[url scheme]]) { [theWebView stopLoading]; [self openInSystem:url]; shouldStart = NO;