Skip to content

Commit

Permalink
Allowing opening of certain URL schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hines Vaughan committed Oct 16, 2020
1 parent a9c27cd commit ae2c8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/CDVWKInAppBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ - (void)webView:(WKWebView *)theWebView decidePolicyForNavigationAction:(WKNavig
}

//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 ([[ url scheme] isEqualToString:@"itms-appss"] || [[ url scheme] isEqualToString:@"itms-apps"] || [[ url scheme] isEqualToString:@"tel"] || [[ url scheme] isEqualToString:@"sms"] || [[ url scheme] isEqualToString:@"mailto"] || [[ url scheme] isEqualToString:@"geo"]) {
[theWebView stopLoading];
[self openInSystem:url];
shouldStart = NO;
Expand Down

0 comments on commit ae2c8d0

Please sign in to comment.