I receive the following error in DidCompleteWitherror:
com.apple.AuthenticationServices.Authorization Error Code 1000
I'm using the following code to sign in to Apple
var appleIdProvider = new ASAuthorizationAppleIdProvider(); var request = appleIdProvider.CreateRequest(); request.RequestedScopes = new ASAuthorizationScope[] { ASAuthorizationScope.Email, ASAuthorizationScope.FullName }; var authController = new ASAuthorizationController(new[] { request }); authController.Delegate = this; authController.PresentationContextProvider = this; authController.PerformRequests(); ... [Export("authorizationController:didCompleteWithAuthorization:")] public void DidComplete(ASAuthorizationController controller, ASAuthorization authorization) { ... } [Export("authorizationController:didCompleteWithError:")] public void DidComplete(ASAuthorizationController controller, NSError error) { ... }
What could be the reason of this error?
As you can check in the Apple Documentation, the 1000 error code really means that the error is unknown, so this solution may not work for you. In terms of your code, it seems alright to me! You can also check these samples!
When an Apple ID needs to be required Two-Factor Authorization, then we can request this provider ASAuthorizationPasswordProvider, we have to delete the code. After you remove the line code, all run work. It sounds like you discovered an issue that users may face too unless you're somehow confident this is only a sim issue?
A verification step from Apple is not required, despite the misleading documentation on their side. Could you try to run a new build and make sure to create a new provisioning profile with updated capabilities inside? Make sure the "Apple Sign-in" entitlement is added to your build settings, and in your Apple certs from the developer portal.
After searching I found that it works on a real device and SOMETIMES doesn’t work on the simulator.
But I solved it by logging in here and removing the simulator under Devices. Then building it again. Don't forget to add “Sign in with Apple” in “Signing & Capabilities”.
I got this error because forget to add sign in capability.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With