EddyVerbruggen / Custom-URL-scheme

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

handleOpenURL is not called in Windows UAP #237

Open NaveenKY opened 7 years ago

NaveenKY commented 7 years ago

I am trying to use plugin for windows 10. But in windows 10 handleOpenUrl is not getting called. Can you please tell if config are different for windows 10.

Raghu700 commented 7 years ago

Hey Naveen, Have you find any solution for the problem. I am also facing the same

NaveenKY commented 7 years ago

Hey Raghu, Unfortunately no solution yet.

mezykr commented 7 years ago

Hey, same problem here ... Still no ideas how to deal with that?

mezykr commented 7 years ago

ok - it's working, what I did is:

WinJS.Application.onactivated = function(e) { console.log(e.detail.uri); } directly inside my app.js , instead of using plugin...

davidemerritt commented 6 years ago

I am also having this problem.

Raghu700 commented 6 years ago

@davidemerritt i resolved this problem by loading deviceready event.In My case due to lazy loading of cordova platform, my handleOpenURL is not fired. So instead of using plugin directly load same function in last in separate file.

davidemerritt commented 6 years ago

@Raghu700 @mezykr - this is a bit unrelated, but how do you guys format the URI callbacks for windows 10 development? I've only been able to do redirects back to ms-appx-web://programname... which doesn't seem to point to the original page, in my other environments I can use programname://. And even odder is that on the windows device I can load programname:// in finder and it opens my app.

and thanks for the previous tip!