In file AppBrowser.java: New code within shouldOverrideUrlLoading() to

check for whitelisting custom schemes via a new "AllowedSchemes"
preference configuration item.  Allows custom schemes like
"mycoolapp://" or "wevotetwitterscheme://"

In file inappbrowser.js: Added new "customscheme" channel.
This commit is contained in:
stevepodell 2018-04-05 12:45:02 -07:00
parent 27500c2990
commit 42df297724
2 changed files with 3 additions and 3 deletions

View File

@ -1256,4 +1256,4 @@ public class InAppBrowser extends CordovaPlugin {
super.onReceivedHttpAuthRequest(view, handler, host, realm);
}
}
}
}

View File

@ -36,8 +36,8 @@
'loadstart': channel.create('loadstart'),
'loadstop': channel.create('loadstop'),
'loaderror': channel.create('loaderror'),
'customscheme': channel.create('customscheme'),
'exit': channel.create('exit')
'exit': channel.create('exit'),
'customscheme': channel.create('customscheme')
};
}