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

[firebase_auth]: Authentication redirection from the browser fails due to taskAffinity configuration #13533

Open
1 task done
rohitsangwan01 opened this issue Oct 22, 2024 · 2 comments
Labels
blocked: firebase-sdk platform: android Issues / PRs which are specifically for Android. plugin: auth type: bug Something isn't working

Comments

@rohitsangwan01
Copy link
Contributor

rohitsangwan01 commented Oct 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Auth

Which platforms are affected?

Android

Description

After authenticating the Android app using AppleAuthProvider, the app does not return from the browser due to the taskAffinity configuration. Removing taskAffinity resolves the issue.

<activity
    android:name=".MainActivity"
    android:exported="true"
    android:launchMode="singleTop"
    android:taskAffinity="" 

Reproducing the issue

When attempting to authenticate with AppleAuthProvider, the app does not redirect back after a successful login

Firebase Core version

3.6.0

Flutter Version

3.24.0

Relevant Log Output

No response

Flutter dependencies

No response

Additional context and comments

No response

@rohitsangwan01 rohitsangwan01 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Oct 22, 2024
@SelaseKay SelaseKay added plugin: auth platform: android Issues / PRs which are specifically for Android. labels Oct 23, 2024
@SelaseKay
Copy link
Contributor

Hi @rohitsangwan01, thank you for the report. I was able to reproduce the issue, and it seems to behave the same way when using the native SDK. This suggests the problem may originate from there. You might want to consider raising an issue here: https://github.com/firebase/firebase-android-sdk

@SelaseKay SelaseKay added blocked: firebase-sdk and removed Needs Attention This issue needs maintainer attention. labels Oct 23, 2024
@rohitsangwan01
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: firebase-sdk platform: android Issues / PRs which are specifically for Android. plugin: auth type: bug Something isn't working
2 participants