-
Notifications
You must be signed in to change notification settings - Fork 115
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
Feat: support universal links on iOS #247
Comments
Using this, I continue to have the same problems discussed in here. I am not using the listener 'appUrlOpen' with this library, but the redirect simply loads the universal link instead of forwarding to the application just the same. I assume this happens because this library possibly uses the Capacitor Browser plugin which uses Only workaround that works for me is to require the user to login each time. No automatic logins or the redirect will simply load the universal link after initial prompt. I use Keycloak, so I use the following |
@Seth-Know I think I had a similar problem and what I ended up doing is adding a confirmation screen "Continue as x" for iPhone users when they still have a session instead of asking them to login again. The problem in the original issue is that even after logging in the user would not get redirected to the app at all. I've been using my fork while waiting for this to be addressed in the meantime. |
Part of 6.1.0 |
Describe the Feature
As recommended by the OAuth 2.0 for Native Apps RFC claimed "https" scheme redirect URIs (or app links on Android/iOS) should be favoured for security reasons as they guarantee the domain ownership.
I got it working on Android using the following AndroidManifest.xml configuration:
But on iOS I'm facing an issue when using an associated domain, the redirection is not caught because I think that the handler is not listening on the right event:
capacitorOpenURL
is called for custom scheme links but for universal links a different application signature is called in the AppDelegate.swift which in turn calls thecapacitorOpenUniversalLink
notification instead.Platform(s) Support Requested
Describe Preferred Solution
I've opened a PR with a simple fix, by registering the
capacitorOpenUniversalLink
notification observer the same way it's done withcapacitorOpenURL
the redirection is handled properly. So something like this:Describe Alternatives
Not sure if there are any unfortunately 🤷
Thank you for all the work on this package!
The text was updated successfully, but these errors were encountered: