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

[MacOS] PlatformExeption: Failed to aquire root FlutterViewController #10

Closed
edeuss opened this issue Sep 20, 2022 · 5 comments
Closed
Assignees
Labels
apple [See issue #68] Just Apple being Apple again... bug Something isn't working hacktoberfest Fixing this issue will get you one PR closer to completing Hacktoberfest :)

Comments

@edeuss
Copy link

edeuss commented Sep 20, 2022

Describe the bug

Getting a PlatformExeption from running FlutterWebAuth2.authenticate on a mac.

Device (please complete the following information!)

  • Device: Macbook Pro
  • OS: MacOS V12.6
  • flutter_web_auth_2 version: 1.1.2

Code

try {
      final result = await FlutterWebAuth2.authenticate(
        url:
            "https://example.com",
        callbackUrlScheme: "example",
      );
} catch (error) {
      print(error);
}
@edeuss edeuss added the bug Something isn't working label Sep 20, 2022
@ThexXTURBOXx
Copy link
Owner

The full error message is missing.
Also, please try to apply the fixed Andrei and I noted in #9

@ThexXTURBOXx ThexXTURBOXx added the hacktoberfest Fixing this issue will get you one PR closer to completing Hacktoberfest :) label Sep 26, 2022
@ThexXTURBOXx
Copy link
Owner

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 :)

@jonasbark
Copy link

For me, it always happens when the Flutter app is not in the foreground while attempting to run authenticate.
E.g. launch the app, put it in the background, then call authenticate => crash

@ThexXTURBOXx ThexXTURBOXx added the apple [See issue #68] Just Apple being Apple again... label Oct 24, 2022
@Adam-Langley
Copy link

Also fixed by e899192

@ThexXTURBOXx
Copy link
Owner

@Adam-Langley Thanks for letting me know! In case someone has more problems with this, I can reopen the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apple [See issue #68] Just Apple being Apple again... bug Something isn't working hacktoberfest Fixing this issue will get you one PR closer to completing Hacktoberfest :)
Projects
None yet
Development

No branches or pull requests

4 participants