aboutyou/dart_packages

AuthorizationAppleID

MTEV opened this issue · 8 comments

MTEV commented

final credential = await SignInWithApple.getAppleIDCredential(
scopes: [
AppleIDAuthorizationScopes.email,
AppleIDAuthorizationScopes.fullName,
],
);

      print(credential);

give me flutter: AuthorizationAppleID(001981.ca133b509db54bbaa9dc7a1a26d8798b.1404, null, null, null, null)
and not working
credential!.email returen null

in what terms is this not working?

MTEV commented

credential!.email returen null
not returen any thing
on ios

that is normal and expected, see #334

MTEV commented

that is normal and expected, see #334
It doesn't help

MTEV commented

that is normal and expected, see #334
It doesn't help
why you. closed
if you don't. have answer please. don't close
thanks

The answer is that this is expected and intended by Apple (not even our side).

You only get the email on the first login and you need to store this information on your server to retrieve it for subsequent logins.

The answer is that this is expected and intended by Apple (not even our side).

You only get the email on the first login and you need to store this information on your server to retrieve it for subsequent logins.

Hi Henri, I faced the same issue. As you mentioned, Apple returns the username, etc., during the first-time login. I didn’t quite understand—what do you mean by "first-time login"? Does this refer to when a user tries to sign up after installing the application? Or does it also apply if an existing user uninstalls the application, reinstalls it, and then tries to log in with Apple? Is that the scenario you're referring to?

tp commented

@swayamshreecolourmoon You only get the name/email on the very first time the user connects their Apple ID with your app (on any device/platform).

Unless they disconnect your app from their Apple ID (via the Apple ID Settings), you will not get this information again.

(So maybe the clearer analogy would be the "registration" instead of "login".)