Closed agalambas closed 1 year ago
Hi, could you please try using flutter_web_auth_2
version pinned to exactly 1.1.0
and report back if that worked? :)
Just tested it and It behaves the same
Okay, crazy idea: Could you try with version exactly 1.0.0
as well?
Because if that one also does not work, there seems to be something fundamentally wrong somewhere since I got confirmation about that one working in the past: https://github.com/ThexXTURBOXx/flutter_web_auth_2/issues/1#issuecomment-1217727401
Its giving me the same error, so is it probably some setup that I'm doing wrong?
It seems like something goes wrong on your side, yes. Sadly, I have neither a developer account nor any device by Apple. So, I am not able to test anything there myself properly.
@AndreiRoze, you had tested this package successfully before. Was there something special you needed to do or did it just work out of the box? Also, did you notice anything that broke in the mean time?
Library works correct, i can recheck it again on monday. For fix that issue try to:
1) flutter clean
2) delete pubspec.lock
file (NOT pubspec.yaml
)
2) flutter pub get
3) flutter run
If it's doesnt help, could you provide file ios -> Runner -> AppDelegate.swift
from your project?
Thanks for confirming! :)
I have no idea what was the solution but it is now working in the version 1.0.0, didn't test the latest version yet
i have the same issue :c dont work in ios
Does 1.0.0 work for you? @Jenry94
don't work for me in any version, i cleaned , update pods, delete and add the plugin and dont work. Only in IOS.
As already said, alas I cannot test on iOS myself. That's why I rely on fixes by other people in that regard. If someone finds a bug or something else, please propose a PR and I will include it in the next release :)
I recheck app from example with latest version of library, it's work correct. I use iPad with iOS 15.7(latest)
If you can, please provide minimal reproducible code sample which doesn't work. Also try some fixes from https://github.com/flutter/flutter/issues/10912 may be it will help you.
@AndreiRoze Thank you very much for re-confirming this! I am sorry for letting you do all this work 😅
To everyone having a similar issue, please check the generated files if they are correct (according to the issue @AndreiRoze linked above).
If nothing helps, try flutter clean
and then flutter build <platform>
again (be sure to replace <platform>
with the specific platform you want to target, e.g. ios
).
I will close this issue as completed as soon as I mention this in the documentation.
I tagged this PR as being part of Hacktoberfest
.
So, if someone is able to fix and properly test this issue, he is one step closer to completing Hacktoberfest 2022
:)
I managed to find one reproducible case on iOS.
It throws the exceptions if the url is invalid, for example having whitespace characters inside url host/port.
Steps to reproduce:
example/main.dart
` (whitespace) after
:` in the url.
const url = 'http://127.0.0.1: 43823/';
MissingPluginException
which is quite confusing. On Android, the same case causes to open a blank Android Custom Tab as expected and doesn't throw exception until closing Android Custom Tab which is also as expected.
@rafalbednarczuk Thank you very much for the information! Since I do not want to assert the correctness of URLs passed into the library (they are just too versatile), I think, I will let this be handled by Apple (in their bad bad way).
Describe the bug
When I authenticate to my custom backend in the iOS app, I get this error! Error: MissingPluginException(No implementation found for method authenticate on channel flutter_web_auth_2)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should work
Device
Device: iPad Pro 9.7" OS: iOS 15.0.2 flutter_web_auth_2 version: 1.1.2
Additional context
Maybe I am missing some documentation here but I followed everything in the readme