EddyVerbruggen / Custom-URL-scheme

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

Will not go past index #266

Open manking109 opened 6 years ago

manking109 commented 6 years ago

I have this function on index.html

function handleOpenURL(url) { console.log("received url: " + url); }

It returns this to console received url: homzzz://form.html

The LaunchMyApp.js is loaded into the network files.(yet I never see console.log('launchmyapp'); )

How do I know if LaunchMyApp.java is working?

Yet the url in the deep link does not go past the index.cfm

I can use this as a workaround but if I try to go back to index.html it reprocesses the handleopenurl and snaps back the referred page.

function handleOpenURL(url) { var url2 = url.replace("homzzz://", ""); //console.log("received url: " + url); //console.log(acheck); console.log(url2); window.location = url2; }

Is there away to kill url so when it is referred back is does not relocate back?