diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index fcd8d984e..0ca3feb15 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -299,8 +299,9 @@ - (void)openInCordovaWebView:(NSURL*)url withOptions:(NSString*)options - (void)openInSystem:(NSURL*)url { - [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; - [[UIApplication sharedApplication] openURL:url]; + if ([[UIApplication sharedApplication] openURL:url] == NO) { + [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; + } } // This is a helper method for the inject{Script|Style}{Code|File} API calls, which