EddyVerbruggen / Custom-URL-scheme

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

Can't get callbacks to fire if App already open #166

Closed adamgins closed 8 years ago

adamgins commented 8 years ago

Awesome plugin Thanks. Just having a few issues:

My iOS app opens when called with myapp://url but can't seem to get the all backs to fire consistently:

DeepLink.once('INTENT', function(intent){
        console.log('1 Got some deep linked data...',intent);
        alert("2:")
    });

    DeepLink.once('myapp', function(data, url, scheme, path, querystring){
        console.log('2 Got some deep linked data...',data, url, scheme, path, querystring);
        alert("3:" + url)
    });

If I shut down the app and then click link in Safari on iOS it opens and the call backs fire. If the app is already open, iOS switch to the app and opens it however the callbacks don't fire.

I am using this with Meteor via https://atmospherejs.com/dispatch/deep-link

Any help appreciated

@raix

adamgins commented 8 years ago

Ooops had two browser issues open... raised here https://github.com/DispatchMe/meteor-deep-link/issues/3