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 with Facebook does not work on Android #8435

Open
jacquesgiraudel opened this issue Aug 17, 2024 · 5 comments
Open

Firebase auth with Facebook does not work on Android #8435

jacquesgiraudel opened this issue Aug 17, 2024 · 5 comments

Comments

@jacquesgiraudel
Copy link

jacquesgiraudel commented Aug 17, 2024

Operating System

Android 13

Browser Version

Chrome 127.0.6533.103

Firebase SDK Version

10.13.0

Firebase SDK Product:

Auth

Describe your project's tooling

React app

Describe the problem

I am trying to login with signInWithPopup (which works on desktop and ios devices) and I get a "auth/popup-closed-by-user" without any additional details.

const auth = getAuth();
const provider = new FacebookAuthProvider();
provider.addScope('email');
provider.setCustomParameters({
'display': 'popup'
});
signInWithPopup(auth, provider)
. then(...)
.catch(error){}

Steps and code to reproduce issue

On an Android device:

  • go to https://upreality.store
  • scroll down to the "login" button
  • click it, then Facebook login
  • login to Facebook
  • the popup closes and you are redirected back to the initial page, after some times an error is returned
@jacquesgiraudel jacquesgiraudel added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Aug 17, 2024
@jacquesgiraudel jacquesgiraudel changed the title Firebase auth with Facebook does not work anymore on Android Firebase auth with Facebook does not work on Android Aug 18, 2024
@jbalidiong jbalidiong added needs-attention and removed new A new issue that hasn't be categoirzed as question, bug or feature request labels Aug 19, 2024
@jbalidiong
Copy link
Contributor

Hi @jacquesgiraudel, thank you for reaching out to us. I was able to replicate the issue. Let me check with our Auth team what we can do for this issue or bring someone here that can provide more context about it. I’ll update this thread if I have any information to share.

@nkhanh90
Copy link

Hi, any updates about it. I have same problem with facebook login on both ios and android.

@bcoghe
Copy link

bcoghe commented Sep 22, 2024

@jbalidiong Same here.. This seems quite breaking and might require some urgency? It has already been reported since at least January: firebase/firebaseui-web#1068 (This thread refers to a topic: #7958).

@NhienLam
Copy link
Contributor

NhienLam commented Sep 27, 2024

Hi @jacquesgiraudel, it seems your authDomain doesn't match the domain you are using (upreality.store).

  1. Could you try updating your authDomain to match the domain you're using and see if it works?
  2. Does this issue also occur in other browsers?

We're investigating why this is occurring only on Android devices and Facebook provider.

@jacquesgiraudel
Copy link
Author

Hi @NhienLam,

Unfortunately, I am not using Firebase hosting, so this is not an option for me.

https://firebase.google.com/docs/auth/web/redirect-best-practices

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

No branches or pull requests

6 participants