Twitter auth, how to get email?
See original GitHub issueGreetings
It took me awhile but I can finally see what is in the new 1.0 release. So I handle to create the Twitter authentication and the user is correctly logged in. I was very surprised when in the firebase.google console the user have no email!
The first thing I did was to check it using:
String email = FirebaseAuth.getInstance().getCurrentUser().getEmail();
Toast.makeText(this, email, Toast.LENGTH_SHORT).show();
But there is no email. So I have being doing some search and found here some indications to get the email in web. However, in the Android documentation there is no email reference. What confuses me most is this StackOverflow question where is explained there is no way to get the email.
UPDATE: Another attempt to get more details was to send email verification, which didn’t work with Twitter, cross check using email/password login.
Can we get the user email with Twitter login? Thanks in advanced.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10
Top GitHub Comments
@cutiko @juanlet I finally got around to testing it today and I can confirm that the email is received if you request it in the Twitter dashboard:
Also, what do you think of this update to the README?
@cutiko @juanlet Just FYI, to get the email you’ll need to reset the permissions used by your app by going to https://twitter.com/settings/applications and revoking it.