Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After iOS Universal Links is set, handleOpenURL no longer responds, what should I do? #328

Open
super-maoMao opened this issue Aug 21, 2020 · 3 comments

Comments

@super-maoMao
Copy link

ionic 3.20.0
ios cordova 4.5.5
cordova-plugin-customurlscheme 4.3.0
xcode 9.2
swfit 3.0

(window as any).handleOpenURL method no longer responds

@guanyuan
Copy link

same issue here。
anyone else income this problem?

@rolinger
Copy link

rolinger commented Aug 4, 2021

Anyone have an update on this? I too think I am experiencing the same issue. Works just fine on Android. But as I started dabbling in Universal Links, its no longer working.

@rolinger
Copy link

rolinger commented Aug 5, 2021

After a bit of testing, I discovered that simply defining an Associated Domain in the iOS Xcode project will prevent the openHandleURL from working. With or without actual Universal Links defined in the config.xml file (using the plugin). However, I saw on another thread, someone using Capacitor, had to wrap the openHandleURL function in an event listener to get it to work. Something like:

 App.addListener('appUrlOpen', data => {
    window.handleOpenURL(data.url);
  });

I am assuming something similar can be done here for regular Cordova and Ionic projects. I won't be testing it on the current rev of my project....I will move to ULs in the next rev because I will still need URL Schemes to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants