Repository: cordova-plugin-inappbrowser Updated Branches: refs/heads/master 57b50b1d6 -> cc2ec2269
Add intent scheme to be handled by OS The intent scheme `intent://` is [recommended by Google ](https://developer.chrome.com/multidevice/android/intents) for launching apps. Cordova should forward this to the OS to handle appropriately. This closes #183 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/cc2ec226 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/cc2ec226 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/cc2ec226 Branch: refs/heads/master Commit: cc2ec22695285d7516f0018a74b10a4eabadfc22 Parents: 57b50b1 Author: Gavin Pacini <gavinpac...@users.noreply.github.com> Authored: Mon Aug 29 16:20:12 2016 +0100 Committer: Julio César <jcesarmob...@gmail.com> Committed: Mon Aug 29 23:51:09 2016 +0200 ---------------------------------------------------------------------- src/android/InAppBrowser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/cc2ec226/src/android/InAppBrowser.java ---------------------------------------------------------------------- diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java index cd4ec03..8f4f3d9 100644 --- a/src/android/InAppBrowser.java +++ b/src/android/InAppBrowser.java @@ -843,7 +843,7 @@ public class InAppBrowser extends CordovaPlugin { } catch (android.content.ActivityNotFoundException e) { LOG.e(LOG_TAG, "Error dialing " + url + ": " + e.toString()); } - } else if (url.startsWith("geo:") || url.startsWith(WebView.SCHEME_MAILTO) || url.startsWith("market:")) { + } else if (url.startsWith("geo:") || url.startsWith(WebView.SCHEME_MAILTO) || url.startsWith("market:") || url.startsWith("intent:")) { try { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(url)); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org