Skip to content
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

Login failed com.apple.AuthenticationServices.AuthorizationError error 1000 #52

Open
srihamat opened this issue Aug 9, 2020 · 14 comments

Comments

@srihamat
Copy link

srihamat commented Aug 9, 2020

My sign in code is simple:
`
void _signInWithApple(BuildContext context) async {
var bloc = Provider.of(context, listen: false);
print("_signInWithApple");

if (!await AppleSignIn.isAvailable()) {
  print("AppleSignIn is not availalbe !");
  return null; //Break from the program
}
else {
  print("AppleSignIn is availalbe !");
}
final AuthorizationResult result = await AppleSignIn.performRequests([
  AppleIdRequest(requestedScopes: [Scope.email, Scope.fullName])
]);
switch (result.status) {
  case AuthorizationStatus.authorized:
    print("Sign in successfully");
    // Get credential and then signin with credential, and do something with particular credential
    break;
  case AuthorizationStatus.error:
    print("Sign in failed: ${result.error.localizedDescription}");
    break;
  case AuthorizationStatus.cancelled:
    print('User cancelled');
    break;
}

}
`

But my debugging information found that

flutter: _signInWithApple
flutter: AppleSignIn is availalbe !
[core] Authorization failed: Error Domain=AKAuthenticationError Code=-7034 "(null)" UserInfo= }
flutter: Sign in failed: The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)

Since apple sign in is available in this device then I search to find out more information from error 1000.
I found recently discussion in react native ref

I just login into https://appleid.apple.com/account/manage
Then scroll down a little bit to remove emulator from the device list then it's simply work.
Observed logging in required 2-factors authentication.

I hope it help you guy as well.

@srihamat srihamat changed the title Login error apple id failed Login failed com.apple.AuthenticationServices.AuthorizationError error 1000 Aug 9, 2020
@gimpotronitus
Copy link

Same issue started happening with me yesterday after I updated to flutter version 1.20.1.

@codeItRalf
Copy link

Same here, it worked some days ago but now I get the same error 1000.

@gustavofurtadoo
Copy link

Anyone knows how to fix? I am getting the same error.

@gianlucainnocente
Copy link

Same here..

@git-mxf
Copy link

git-mxf commented Aug 20, 2020

同样的错误,有人能解决么

@eldrig0
Copy link

eldrig0 commented Aug 22, 2020

Same here

@NarHakobyan
Copy link

any news?

@dannycortesv
Copy link

Same issue for me...

@dannycortesv
Copy link

Downgraded Flutter to 1.17.2 and the issue still present

@praveen-francium
Copy link

I am still having this issue Any update regarding this.

@srihamat
Copy link
Author

srihamat commented Oct 3, 2020

Until now, I'm not sure this could be solution but at least it should be workaround for the problem:

  1. Login into https://appleid.apple.com/account/manage
  2. Then scroll down a little bit to remove emulator from the device list
  3. Try run emulator then login again

@hnvn
Copy link

hnvn commented Dec 10, 2020

Same for me, just got rejected from Apple because of this error

@MaximeDelhorme
Copy link

Same for me, everything runs fine when I test on my device but somehow got rejected from apple with this error. Any idea?
I do not see any emulator in my device list.

@leszekkrol
Copy link

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests