Closed neokree closed 1 month ago
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)
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: The redirect URL is the URL which serves the login page. The callback scheme is the URL scheme that is used for redirection to the app.
This is a case of "RTFM", but I will help anyway: The redirect URL is the URL which serves the login page. The callback scheme is the URL scheme that is used for redirection to the app.
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
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$(url schema)</string>
</array>
</dict>
</array>
@rdunlocked18 Do i need to add the scheme in this way if it is 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