aboutyou / dart_packages

Dart and Flutter plugins maintained and used by @ABOUTYOU
222 stars 151 forks source link

Sign In Fails on iOS 15 #243

Closed agentic-integral closed 3 years ago

agentic-integral commented 3 years ago

Hey team,

First of all, thanks for the great plugin. Just to let you know, the code below hangs on iOS 15. I have confirmed it is working on all previous versions of iOS.

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

// hangs on getAppleIDCredential and does not throw.

pongloongyeat commented 3 years ago

Are you perhaps stuck on "Enter the password for Apple ID"? I currently have this issue on iOS 14.5 and have been stuck on this for awhile.

Edit: Found out that the issue I'm facing is a duplicate of #144

HenriBeck commented 3 years ago

@agentic-integral could you please share some screenshots of where you are stuck in the UI and also some XCode logs?

akashgk commented 3 years ago

I'm also unable to build for iOS 15

Xcode version: Version 13.0 (13A233) Screenshot 2021-09-27 at 12 05 49 PM

HenriBeck commented 3 years ago

@akashgk #213

HenriBeck commented 3 years ago

Closing due to inactivity.

gillestasse commented 3 years ago

We encountered the same error and our app got rejected from the app store with the following message:

_We discovered one or more bugs in your app. Specifically, an error occurs when we attempt to login using the "Sign in with Apple". Please review the details below and complete the next steps.

Steps to reproduce:

Review device details:

Flutter doctor :

[✓] Flutter (Channel stable, 2.5.2, on macOS 11.5.2 20G95 darwin-x64, locale en)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Community Edition (version 2020.3.3)
[✓] VS Code (version 1.58.2)
[✓] Connected device (2 available)

There are no entry in the xcode logs. The login process is just stuck on the Apple ID screen, where user need to enter his/her password. I press continue, the app seems to load but nothing happens just like in case with ios14

HenriBeck commented 3 years ago

@gillestasse, please create a new issue with exact reproduction steps and full XCode logs attached.

tstrg commented 3 years ago

We encountered the same error and our app got rejected from the app store with the following message:

_We discovered one or more bugs in your app. Specifically, an error occurs when we attempt to login using the "Sign in with Apple". Please review the details below and complete the next steps.

Steps to reproduce:

  • Launch the app
  • Tap on the Apple logo
  • A network error is displayed

Review device details:

  • Device type: iPad and iPhone
  • OS version: iOS 15.0.2_

Flutter doctor :

[✓] Flutter (Channel stable, 2.5.2, on macOS 11.5.2 20G95 darwin-x64, locale en)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Community Edition (version 2020.3.3)
[✓] VS Code (version 1.58.2)
[✓] Connected device (2 available)

There are no entry in the xcode logs. The login process is just stuck on the Apple ID screen, where user need to enter his/her password. I press continue, the app seems to load but nothing happens just like in case with ios14

@gillestasse We encountered the same error and our app got rejected. We've tested it on a real iPhone device with iOS 15.0.2 and are not able to reproduce the issue. The used version of sign_in_with_apple is v3.0.0, Xcode 12.4. Did you find the solution?

Update: Based on the provided screenshot, they received "com.apple.AuthenticationServices.Authorization Error Code 1000"

In my case, the Sign in with Apple is added in Signing & Capabilities, and Sing In With Apple works as expected on my physical device with iOS 15.0.2.

I'm attaching link to issues related to Error Code 1000 on StackOverflow. https://stackoverflow.com/questions/59321233/com-apple-authenticationservices-authorization-error-code-1000

gillestasse commented 3 years ago

@tstrg I could not solve the issue. Could not trace the bug.