firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.7k stars 3.97k forks source link

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

Open rohitsangwan01 opened 2 weeks ago

rohitsangwan01 commented 2 weeks ago

Is there an existing issue for this?

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

SelaseKay commented 1 week ago

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

rohitsangwan01 commented 1 week ago

https://github.com/firebase/firebase-android-sdk/issues/6403