We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a856be commit 11ba4c4Copy full SHA for 11ba4c4
src/ios/CDVWKInAppBrowser.m
@@ -357,8 +357,10 @@ - (void)openInCordovaWebView:(NSURL*)url withOptions:(NSString*)options
357
358
- (void)openInSystem:(NSURL*)url
359
{
360
- [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]];
361
- [[UIApplication sharedApplication] openURL:url];
+ if ([[UIApplication sharedApplication] openURL:url] == NO) {
+ [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]];
362
+ [[UIApplication sharedApplication] openURL:url];
363
+ }
364
}
365
366
- (void)loadAfterBeforeload:(CDVInvokedUrlCommand*)command
0 commit comments