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?
After searching I found out that it works on a real device and SOMETIMES not working on the simulator.
But I solve it by logging in here and removing the Simulator
under Devices
And building it again. Don't forget to add the Sign in with Apple
in Signing & Capabilities
.
Vote up to thank me :)