From cc2ec22695285d7516f0018a74b10a4eabadfc22 Mon Sep 17 00:00:00 2001 From: Gavin Pacini Date: Mon, 29 Aug 2016 16:20:12 +0100 Subject: [PATCH] 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 --- src/android/InAppBrowser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));