I am developing an Android app with Firebase. I authenticate user with Email, Facebook, Twitter accounts. The problem is I have the permissions for Facebook and Twitter getting the email. I can get the email and in the Firebase console, I can see the related Emails for Facebook and Twitter. But in the app, I cannot get the email of Facebook and Twitter accounts. I looked at the all provider data of user. Like follows: |
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/765ef52f-6ae1-46d3-8ee9-05d0f36fccbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey there,Are you using "Multiple accounts per email" setting in the Firebase console (bottom of this page)? If so this is expected for OAuth providers. The top level email is not set and only the email for the relevant provider is available. If you switch to "one account per email" in the console, the email will be populated.Cheers,Jacob
On Wed, Feb 22, 2017 at 3:17 AM, tuğba kaya <kayaa...@gmail.com> wrote:
I am developing an Android app with Firebase. I authenticate user with Email, Facebook, Twitter accounts. The problem is I have the permissions for Facebook and Twitter getting the email.
I can get the email and in the Firebase console, I can see the related Emails for Facebook and Twitter. But in the app, I cannot get the email of Facebook and Twitter accounts. I looked at the all provider data of user.
Like follows:
user = mAuth.getCurrentUser(); //First provider is firebase all the time user.getProviderData().get(1).getProviderId() = "twitter.com" user.getProviderData().get(1).getEmail() = null user.getEmail() = null
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/70f4d62c-2562-442a-b27f-861077aeb5fa%40googlegroups.com.