question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: (Android only) signInWithFacebook() doesn't trigger appStateChange nor authStateChange after successful login

See original GitHub issue

Plugin(s):

FirebaseAuthentication

Platform(s):

Android

Current behavior:

Calling signInWithFacebook() on android and successful login return to the app but doesn’t add user to firebase authenticated users, doesn’t trigger appStateChange nor authStateChange and the app navigation is stuck and considered still inactive. this works successfully on web and iOS. Expected behavior:

calling signInWithFacebook() should successfully return to the app after successfull login and trigger authStateChange.

Steps to reproduce:

follow capacitor-firebase signInWithFacebook in android tutorial.

Related code:

insert short code snippets here

Other information:

Capacitor doctor:

Latest Dependencies:       

  @capacitor/cli: 4.4.0    
  @capacitor/core: 4.4.0   
  @capacitor/android: 4.4.0
  @capacitor/ios: 4.4.0    

Installed Dependencies:    

  @capacitor/cli: 4.3.0    
  @capacitor/android: 4.3.0
  @capacitor/core: 4.3.0   
  @capacitor/ios: 4.3.0    

[success] Android looking great! 👌

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
morethalcommented, Nov 9, 2022
1reaction
robingenzcommented, Nov 8, 2022

@morethal This is exactly the problem my linked comment solves. Please check if you did everything correctly and open a new issue if the problem persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: authStateChange never fires. · Issue #140 - GitHub
Current behavior: When using const result = await FirebaseAuthentication.signInWithGoogle() for example, the login is successful and result.user ...
Read more >
There is an error in logging you into this application. Please try ...
Launch the app Login with Facebook Authenticate FB profile. · Un_install the app and install again. · Now try to Login with Facebook....
Read more >
Get Started with Firebase Authentication on Android
Using the Authentication emulator involves just a few steps: ... Sign in success, update UI with the signed-in user's information
Read more >
Facebook Login for Android - Quickstart
The Facebook SDK for Android enables people to sign into your app with Facebook Login. When people log into your app with Facebook...
Read more >
Can't sign in from a third-party service - Google Account Help
An error saying that your password and username are incorrect, even if you've entered the correct information. Note: If you have an account...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found