EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 367 forks source link

activatedHandler handler issue in windows 10 #220

Open sathishnagappa opened 7 years ago

sathishnagappa commented 7 years ago

activatedHandler event is not getting fired when app is open from custom url for the first time.

We are using the latest LaunchMyApp.js code on cordova 6.4.0.

(function () { function activatedHandler(e) { if (typeof handleOpenURL === "function" && e.uri) { handleOpenURL(e.uri.rawUri); } };

document.addEventListener("activated", activatedHandler, false);

}());

});

Although the event gets fired second time with the same custom url but is not serving the purpose.