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.

Can't re-login with Facebook

See original GitHub issue

Environment

  • Nativescript: 5.0.1
  • Nativescript-Vue: 2.0.2
  • TNS Core Modules: 5.0.5
  • Android Runtime: 4.2.0
  • nativescript-plugin-firebase: 7.4.3
  • Device: Android Emulator (Nexus 5X API 27)

Describe the bug When I open the app and login with Facebook, it works fine. But if I logout and try to re-login (without closing the app), it doesn’t work. It seems the method firebase.login() never resolves. I don’t get any error messages. I only get it to work again if I close and re-open the app.

To Reproduce

  1. Login with firebase.login:
firebase.login({
   type: firebase.LoginType.FACEBOOK,
   facebookOptions: { scope: ['public_profile', 'email'] }
}).then(user => {
})
.catch(error => {
})
  1. Logout via firebase.logout()

  2. Try to login again like in step (1), without closing the app

Additional context Digging into the firebase.android.js file, I see that when I login for the first time, the method logInWithReadPermissions is called and after some time the callback onSuccess is also called, indicating successful login, as expected. But when I logout and click in login again, it seems that logInWithReadPermissions is called, but I never get a callback.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
EddyVerbruggencommented, Dec 6, 2018

@hcgustavo Thanks for the details (and others as well, for chiming in). I must admit that code looks a bit suspicious. I’ll take a look!

1reaction
vesnenokannacommented, Dec 4, 2018

I have the exact same issue 😦 Waiting for the reply from Eddy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recover Your Facebook Account if You Can't Log In.
Recover Your Facebook Account if You Can't Log In. · 1. Go to the Find Your Account page at facebook.com/login/identify and follow the...
Read more >
Can't Log into Facebook? Fix Facebook Log in Issue with 6 Tips
Tip 1. Find Out If Facebook Is Down Temporarily; Tip 2. Recover Facebook Account If You Can't Log Into Facebook; Tip 3. Clear...
Read more >
How to Recover a Facebook Account When You Can't Log In
The first option is to enter your email or a phone number. If either of those are connected with your account, Facebook will...
Read more >
How to Recover Your Facebook Account When You Can't Log In
5 Ways to Recover Your Facebook Account · 1. Check if You're Still Logged Into Facebook Somewhere · 2. Try the Default Facebook...
Read more >
Can't Log into facebook? 6 Tips to Fix! - Dr.Fone - Wondershare
Fix 1: Check If Facebook is Down; Fix 2: Log Back In With “Forgot Account”; Fix 3: Recover the Facebook Account With Trusted...
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