cordova-plugin-customurlscheme
Version:
Launch your app by using this URL: mycoolapp://, you can add a path and even pass params like this: mycoolerapp://somepath?foo=bar
12 lines (11 loc) • 339 B
JavaScript
(function () {
function activatedHandlerWinUI(e) {
if (typeof handleOpenURL == 'function' && e.uri) {
handleOpenURL(e.uri.rawUri);
}
};
if (typeof Windows != 'undefined') {
var wui = Windows.UI.WebUI.WebUIApplication;
wui.addEventListener("activated", activatedHandlerWinUI, false);
}
}());