Wednesday, February 8, 2023
HomeiOS Developmentios - Drive 'Join with ' circulation to reappear for Register with...

ios – Drive ‘Join with ‘ circulation to reappear for Register with Apple in Flutter and retrieve electronic mail and fullName

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:

screenshot of removing app

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 of Runner -> 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
    • 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
    • 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/
    • Construct 14B47b
    • CocoaPods model 1.11.2

[✓] Chrome - develop for the online
    • Chrome at /Functions/Google Chrome

[✓] Android Studio (model 2021.3)
    • Android Studio at /Functions/Android
    • Flutter plugin might be put in from:
    • Dart plugin might be put in from:
    • 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

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.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments