Repository: cordova-plugin-inappbrowser Updated Branches: refs/heads/master 83c5e749f -> 3f63aaee5
CB-11178 allow to open other apps on iOS 9 This closes #177 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/3f63aaee Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/3f63aaee Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/3f63aaee Branch: refs/heads/master Commit: 3f63aaee583f85a8ed603fc15cc83127919f8320 Parents: 83c5e74 Author: Julio César <jcesarmob...@gmail.com> Authored: Wed Jul 27 23:38:43 2016 +0200 Committer: Julio César <jcesarmob...@gmail.com> Committed: Thu Jul 28 00:04:00 2016 +0200 ---------------------------------------------------------------------- src/ios/CDVInAppBrowser.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/3f63aaee/src/ios/CDVInAppBrowser.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index 8a7b295..b342ca7 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -262,11 +262,8 @@ - (void)openInSystem:(NSURL*)url { - if ([[UIApplication sharedApplication] canOpenURL:url]) { - [[UIApplication sharedApplication] openURL:url]; - } else { // handle any custom schemes to plugins - [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; - } + [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; + [[UIApplication sharedApplication] openURL:url]; } // This is a helper method for the inject{Script|Style}{Code|File} API calls, which --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org