The primary time I signed in with Apple in my app, I obtained the total Create an account for <app> utilizing your Apple ID
circulation. Nevertheless, I used to be not in a position to see and save the e-mail and fullName fields.
In all subsequent logins after unique join, solely the uid
is given by Apple. That is anticipated behaviour, see Can not get title & electronic mail with register with Apple on actual gadget
{
credential = {
authorizationCode = "<FlutterStandardTypedData: 0x28195d5a0>";
authorizedScopes = (
);
electronic mail = "<null>";
fullName = {
familyName = "<null>";
givenName = "<null>";
middleName = "<null>";
namePrefix = "<null>";
nameSuffix = "<null>";
nickname = "<null>";
};
identityToken = "<FlutterStandardTypedData: 0x28195d460>";
realUserStatus = 2;
state = "<null>";
person = "my person code";
};
credentialType = ASAuthorizationAppleIDCredential;
standing = approved;
}
They advise to take away the app in my Register with Apple
listing and that it ought to drive the unique display to point out up once more:
Sadly, for this account it doesn’t present the unique login circulation after this step, however simply the common Log in display, for if you find yourself a returning person.
Different steps I added:
- eradicating the report from the Authentication display within the Customers desk in Firebase.
- disabling, deleting and re-enabling the Apple Register in Firebase
flutter clear
flutter pub cache restore
- deleting the app from the take a look at gadget, rebooting take a look at gadget and rebuilding from Android Studio.
- eradicating and re-adding
Register with Apple
in XCode by way ofRunner -> Signing & Capabilities
- logging in with my Google Register after which logging out so it clears my shared preferences:
SharedPreferences preferences = await SharedPreferences.getInstance();
await preferences.clear();
Env information:
username@devicename appname % flutter physician -v
[✓] Flutter (Channel secure, 3.3.8, on macOS 12.6.1 21G217 darwin-x64, locale en-NL)
• Flutter model 3.3.8 on channel secure at /Customers/username/Growth/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 52b3dc25f6 (4 weeks in the past), 2022-11-09 12:09:26 +0800
• Engine revision 857bd6b74c
• Dart model 2.18.4
• DevTools model 2.15.0
[✓] Android toolchain - develop for Android units (Android SDK model 32.0.0)
• Android SDK at /Customers/username/Library/Android/sdk
• Platform android-33, build-tools 32.0.0
• Java binary at: /Functions/Android Studio.app/Contents/jre/Contents/Residence/bin/java
• Java model OpenJDK Runtime Setting (construct 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
• Xcode at /Functions/Xcode.app/Contents/Developer
• Construct 14B47b
• CocoaPods model 1.11.2
[✓] Chrome - develop for the online
• Chrome at /Functions/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (model 2021.3)
• Android Studio at /Functions/Android Studio.app/Contents
• Flutter plugin might be put in from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin might be put in from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java model OpenJDK Runtime Setting (construct 11.0.13+0-b1751.21-8125866)
[✓] Linked gadget (3 accessible)
• iPhone X (cell) • 79f8aa15db6582019ae695924b064c727bacb88f • ios • iOS 15.6 19G71
• macOS (desktop) • macos • darwin-x64 • macOS 12.6.1 21G217 darwin-x64
• Chrome (internet) • chrome • web-javascript • Google Chrome 107.0.5304.121
[✓] HTTP Host Availability
• All required HTTP hosts can be found
Replace:
By including the next step to the above listing, I’m able to drive the unique login circulation:
- Sign off apple account on take a look at gadget and don’t preserve any related information (in all probability saved information in my keychain by way of iCloud)
Nevertheless, when working contemporary, nonetheless the e-mail and fullName fields are empty.