In the Firebase
docs for Sign in with Apple it states
Apple only shares user information such as the display name with apps the first time a user signs in. Usually, Firebase stores the display name the first time a user signs in with Apple, which you can get with Auth.auth().currentUser.displayName. However, if you previously used Apple to sign a user in to the app without using Firebase, Apple will not provide Firebase with the user's display name.
I'm using Unity's Sign in with Apple plugin and when signing in for the first time I do get the display name returned so I know it is available.
{
"credentialState":0,
"userInfo":
{
"userId":"000318...",
"email":"
7x4...@privaterelay.appleid.com",
"displayName":"Andy Mads", "idToken":"eyJraWQiOiI4...",
"error":null,
"nonce":"qprIj...",
"userDetectionStatus":2
},
"error":null
}
However currentUser.displayName is not being set, and also the DisplayName property of the provider data for "
apple.com" is also not being set. Why is this?