Firebaseui-ios: No display name for users signed up by email in Firebase Auth

Created on 9 Jul 2019  路  12Comments  路  Source: firebase/FirebaseUI-iOS

My environment

  • Xcode version: 10.2.1
  • Firebase SDK version: 6.3.0
  • Firebase Component: Auth
  • Component version: 6.1.2

Problem description

I'm using the pre-built UI of Firebase Auth. When a user signs up by email, the UI lets him/her enter the user name (label asks for the first and last name combined as one input). However, I can't see a way to get that information later on. Instead, the firebaseUser.displayName is nil for those users. That's not the way it's meant to be, is it?

auth

Most helpful comment

Sounds like a bug. We'll investigate.

All 12 comments

Are there any errors in console when signing in? Can you see those users' names in Firebase console?

Thanks for your quick reply!

I don't get any error message. Everything else is working just fine: the user is logged in and I can access other information like the email address.

I can see the user along with e.g. the email address in the Firebase console, too. However, the Firebase console does not show the (display) name of any user in the first place, does it?

Good point, it doesn't. Can you see the display name in the user's provider info? Also, what version of FirebaseUI are you using?

No, the provider info does not provide that name either. It does contain only the providerID ("password"), the email and the userID which equals the email. The rest is nil.

I'm including the following FirebaseUI pods:

pod 'FirebaseUI/Auth'
pod 'FirebaseUI/Email'
pod 'FirebaseUI/Google'
pod 'FirebaseUI/Facebook'
pod 'FirebaseUI/Phone'

All of them using the latest version 8.0.2.

Sounds like a bug. We'll investigate.

Just found this issue: #262. Looks like my issue is a duplicate of the former one. The bug still seems to exist though.

Furthermore, I can confirm that firebaseUser.displayName seems to get updated later on. I managed to get the correct value in the didSignInWith callback. It's still not in sync with the provider data though. The latter does still contain the old displayName instead of the one provided when signing up by email. In each case, all of these values should get updated before triggering any callback in the first place, right?

@morganchen12 I am also experiencing this issue. Is there an ETA of when this will be resolved?

Hey, unfortunately I haven't had time to make significant contributions to this SDK in a while. We're in the middle of some reshuffling that will hopefully get us some more contributors to FirebaseUI, but between the reporting of this bug and now there hasn't been any progress made.

Sorry for the delays.

I've been getting the same problem, any updates from Google/Firebase?
It was working just this morning though and the only change I made since then is update some dependencies. Could that be the issue?

Problem is still there. Any updates?
The name is required in the interface for creating a user but it is not available when getting the user back in admin

@rosalyntan Would you mind taking a look at this one?

This should be fixed in the latest version of FirebaseUI. Please let me know if that's not the case.

Was this page helpful?
0 / 5 - 0 ratings