aboutyou / dart_packages

Dart and Flutter plugins maintained and used by @ABOUTYOU
220 stars 149 forks source link

[sign_in_with_apple] fullName doesnt work #354

Open cyberpwnn opened 1 year ago

cyberpwnn commented 1 year ago

Real devices, production,debug, doesnt matter. It just doesnt work.

Reopen #250. Not sure why it was closed, doesnt work.

ahmadhassan7 commented 1 year ago

Most probably it'll be this issue.

https://github.com/aboutyou/dart_packages/issues/334

WaheedHussainHaans commented 1 year ago

Anu update on this?

MendleM commented 1 year ago

Did you find a workaround?

kyadalu1 commented 1 year ago

Try this https://www.youtube.com/watch?v=v_Bu2jes3YE

Goodstuff4UonYT commented 7 months ago

Any updates? Apple rejects the app update because of this and we don't get one released anymore... The app was previously removed from Apple Login at https://appleid.apple.com/account/manage, so that the name is requested again. Nevertheless, it returns null. @tp @HenriBeck

Goodstuff4UonYT commented 7 months ago

I have just created a new Apple ID and signed in with the new Apple ID. I was also asked for the name when I logged in and fullname is still null.

adminptl0001 commented 7 months ago

I have just created a new Apple ID and signed in with the new Apple ID. I was also asked for the name when I logged in and fullname is still null.

I don't think this is correct. I was in your exact position with App Store review. AuthorizationCredentialAppleID has givenName and familyName upon first sign in after removing the account from Apple Login.

My issue was that Firebase Authentication was not reading those values into displayName as it does with Google Sign In. I solved this by caching the values from apple with unique id the first time they are provided and referencing them later on when needed.

bugrevealingbme commented 5 months ago

Edit: the api does not give name, you can get on the app with "givenName". Send to backend and use

avdept commented 1 month ago

Ok, the problem I had - I originally didn't add proper scopes and my iCloud account was logged in without name. It was all the same until I removed login via my settings in iCloud account. Next time it asked for name and email correctly.