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

Android issue login flutter 3.24 #541

Open
the-best-is-best opened this issue Sep 20, 2024 · 3 comments
Open

Android issue login flutter 3.24 #541

the-best-is-best opened this issue Sep 20, 2024 · 3 comments

Comments

@the-best-is-best
Copy link

[log] login issue Exception: Authorization error: FlutterAppAuthUserCancelledException{platformErrorDetails: FlutterAppAuthPlatformErrorDetails(type: 0,
code: 1,
error: null,
errorDescription: User cancelled flow,
errorUri: null,
domain null,
rootCauseDebugDescription: null,
errorDebugDescription: AuthorizationException: {"type":0,"code":1,"errorDescription":"User cancelled flow"})}

@the-best-is-best the-best-is-best changed the title Android issue login Android issue login flutter 3.24 Sep 20, 2024
@MaikuB
Copy link
Owner

MaikuB commented Oct 3, 2024

Could you please provide more details? This would be something to note for future reference as an exception doesn't help explain much. The exception you have also shared is typically thrown when the user has closed the browser. The plugin itself doesn't have an issue with Flutter 3.24 itself and you can clone the repository to run the example app to confirm. If you believe there's a bug then you'll need to provide a link to a repository hosting a minimal app that can reproduce the problem

@the-best-is-best
Copy link
Author

Issue in android

Android manifest

Need to remove android: taskAffinity=""

In <activity

It is added as a default and needs removed after creating a new project

@enloc-port
Copy link

The good thing is that this issue and the comment by @the-best-is-best exist. We faced the exact same issue and this was the exact solution.

The bad thing is that nobody (or at least not I) would have associated this taskAffinity with the "User cancelled flow" behavior.

Maybe throwing a hard exception would be the better solution here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants