EddyVerbruggen / Custom-URL-scheme

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

Not working in iOS 9.3.3 #199

Closed dpalou closed 8 years ago

dpalou commented 8 years ago

We've been using this plugin for a long while and it worked fine, but after upgrading to iOS 9.3.3 it stopped working. The exact same code works fine in iOS 9.3.2.

It seems this is due to security changes, Apple wants everyone to switch to Universal links instead of using URL scheme. I tried using a basic URL like "myApp://hello" and it doesn't work either.

dpalou commented 8 years ago

We managed to make it work. We were opening the app using an HTTP redirect in PHP, and that stopped working in iOS 9.3.3. Now we're using an HTML link and triggering it via JavaScript:

document.getElementById('launchapp').click();