EddyVerbruggen / Custom-URL-scheme

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

handleOpenURL not working in IOS 12 #345

Closed douglasendrew closed 1 year ago

douglasendrew commented 1 year ago

Hello guys, i have a problem on execute the function handleOpenURL on IOS 12 (i try on IOS 16 and running).

My code:

window.handleOpenURL = function(url) { setTimeout(function(){ var link = url.split("?"); var keysPair = link[1].split("&"); var event_key = keysPair[0].split("="); if(event_key[0] == "event") { alert("Entrando no evento..."); loadPage(true, "request-entry-event", { id: event_key[1] }, true); } },0); };

Where is the error?

raeesaa commented 6 months ago

@douglasendrew were you able to get this to working? I am facing this issue with all iOS versions.