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
Unable to Capture Redirect URLs with 'http' or 'https' CallbackUrlScheme on iOS without user interaction #65
Comments
Any Update on this ? |
This looks like "Apple being Apple" again. I am unsure if this is a bug within this package or iOS or the backend since there is no way for me to test that (I don't own a apple device) |
I am not able to redirect to the application. I have no setup for Universal Links also I am using localhost:3000/callback.html as a redirect URL. If you want to test anything on iOS I can help. Can you tell me what should be
Currently, it shows a white page if I redirect with code on localhost:3000/callback.html, should this page be live .. in the sense should it load? |
This is a case of "RTFM", but I will help anyway: |
That thing is fine ! but what if I don't have universal links added ? |
This is the setup without universal links. If you want universal links, you need to some extra setup. Otherwise, everything works normally Edit: Also, this issue is about universal links. If you have issues without them, you are better off filing a new issue |
@ThexXTURBOXx @rdunlocked18 Did you guys have any solution regrading redirection in IOS ? |
@ThexXTURBOXx I do not have the classes(FlutterWebAuth2Plugin.h,...) in my IOS folder. DO i need to add those three files too ? |
Nothing just add the same URL scheme in iOS, which is of Android, and also in info.plist...Add this from below & change the URL Scheme
|
@rdunlocked18 Do i need to add the scheme in this way if it is https ? - $https |
@rdunlocked18 if i use https as my url scheme , does the redirect link should be of valid domain ? |
Describe the bug
When using this library with Universal Links on iOS to login into a service, the link is opened in the browser if the user is already logged in.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When using a redirect to a universal link without user interaction, browser closes and app receives the callback
Device (please complete the following information!)
flutter_web_auth_2
version: 2.2.1Additional context
This seems more like a bug of Safari, instead of this library's code (Read "Preparing Your App to Handle Universal Links" at https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html)
Nevertheless I have lost 2 days trying to fix it so it seemed logic to me that this situation must be shared for future developers.
Checklist
The text was updated successfully, but these errors were encountered: