EddyVerbruggen / Custom-URL-scheme

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

How to get URL in IOS #302

Open lizj0917 opened 4 years ago

lizj0917 commented 4 years ago

my app is ionic1 ,and I use handleOpenURL() in my app.js, but i cannot get the url

josephlaw commented 4 years ago

I also use ionic v1, i put below code inside the $ionicPlatform.ready in app.js

window.handleOpenURL = function (url) { setTimeout(function() { alert("received url: " + url); }, 0); };

gasci commented 4 years ago

It doesn't work with cordova-ios@5.0.0, does it?

josephlaw commented 4 years ago

@gasci sorry I use cordiva-ios 4.5.5

Must use the timer in my case