DEV Community

Discussion on: Flutter Firebase Authentication: Apple Sign In

Collapse
 
tjgrapes profile image
Ashton Jones

Hey, good post.

I've been running into the following errors when I try to launch on a physical iOS device:
[core] Authorization failed: Error Domain=AKAuthenticationError Code=-7026 "(null)"

flutter: SignInWithAppleAuthorizationError(AuthorizationErrorCode.unknown, The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.))

And the following error when I try launching on an iOS simulator:
SignInWithAppleAuthorizationError(AuthorizationErrorCode.unknown, The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.))

I have everything set up correctly with Sign in With Apple capability and set the iOS deployment target to 13.

Any idea what is happening here?

Thanks

Collapse
 
offlineprogrammer profile image
Offline Programmer

Make sure to add "SignIn with Apple" capability in your plist file
Also if you are testing on a simulator, use a simulator of iOS 13.5 or lower...

Collapse
 
tjgrapes profile image
Ashton Jones • Edited

I got it working, I'm not sure exactly what the issue was.

I have the capability enabled in XCode, but don't see it in my plist file- what is the key value pair for sign in with apple in the plist file?

The following was generated in my Runner.entitlements file for Apple Sign In:


aps-environment
development
com.apple.developer.applesignin

Default


Do I still need the capability in the plist file?

Thread Thread
 
koketso_koks profile image
AppsByKoketso

Hi,

How did you fix the error.

I am getting the same error whilst running it on Real deveice and also on simulator