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

handleOpenURL method is not called on iOS when running with Capacitor #332

Open
jh-gh opened this issue Dec 4, 2020 · 4 comments
Open

Comments

@jh-gh
Copy link

jh-gh commented Dec 4, 2020

I am porting an application that uses this plugin from Cordova to Capacitor.

I have configured the CFBundleURLTypes in info.plist and my app does get launched successfully on iOS when another app opens my custom URL.

However, the handleOpenURL method does not get called on iOS. It does get called on Android ... provided that you run with the latest version of this plugin (5.0.2 or later which has a fix for Capacitor Android).

As a workaround, I am using functionality in the Capacitor App plugin to call my handleOpenURL method like this:

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

rmitache commented Dec 25, 2020

I am getting this problem with Cordova as well.
Do you by any chance have any ideas on whether your workaround could work without Capacitor ? Thanks

@menzen
Copy link

menzen commented Jan 13, 2021

Same here on a app cold start and cordova ...

@ppetree
Copy link

ppetree commented Jul 16, 2021

As an FYI, I'm using voltbuilder and this worked as expected on iOS 12.x, 13.x and 14.x.

@raeesaa
Copy link

raeesaa commented Jan 8, 2024

@rmitache did you find any solution for this?

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

5 participants