-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception thrown when not logged into apple on simulator before calling getAppleIdCredentials #302
Comments
Same for me. I see the error thrown right after closing the dialog in @juskek 's image (fyi, it's an alert dialog created by my custom code using try-catch) It says the error is Or actually, if the enum |
same issue here, any solution? |
Error https://developer.apple.com/documentation/authenticationservices/asauthorizationerror/code/unknown So I don't think it's canceled in the sense that the user ended the flow without signing in, but something technically was amiss. |
you can catch the exception like this:
|
any solution for this ? I am getting an unhandled exception in my flutter app. |
Not tested on a real device
Tested on iPhone 13 simulator
iOS 15.4
Step. 1
Start iOS simulator, dont be logged into apple on it
Step 2
Call getAppleIDCredential form your application
final result = await SignInWithApple.getAppleIDCredential( scopes: [ AppleIDAuthorizationScopes.email, AppleIDAuthorizationScopes.fullName, ], );
Result:
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: SignInWithAppleAuthorizationError(AuthorizationErrorCode.unknown, The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.))
The text was updated successfully, but these errors were encountered: