EddyVerbruggen / Custom-URL-scheme

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

works on android 6+, but not iOS 10 #205

Closed caleb87 closed 7 years ago

caleb87 commented 7 years ago

I'm using PGB versions cli-6.3.0 (4.2.0 / 5.2.1 / 4.4.1). Android v6 works as expected, but iOS v10 won't fire. I wrapped the function in a 6 second timeout, and it still won't fire. Any ideas?

function handleOpenURL(url) {
    console.log('received');
    setTimeout(function() {
        console.log("received url: " + url);
    }, 6000);
}
caleb87 commented 7 years ago

My mistake. Android allows this function to be called from a JS file, while iOS requires it to be in the index file.