Apple SignIn TVOS issue -7014

185 Views Asked by At

My team and I have been trying to implement Apple ID Sign in for both iOS and tvOS applications. iOS is able to sign in with Apple ID just fine with the same code, but whenever we tried to sign in through our tvOS app, it gives us the following error:

[core] Authorization failed: Error Domain=AKAuthenticationError Code=-7014 "(null)" UserInfo={AKClientBundleID=[bundleID]}

Here is our code:

extension LogInViewController: ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {

@objc func userDidTapSignInWithAppleButton(){
    let appleIDProvider = ASAuthorizationAppleIDProvider()
    let request = appleIDProvider.createRequest()
    request.requestedScopes = [.fullName, .email]

    let authorizationController = ASAuthorizationController(authorizationRequests: [request])
    authorizationController.delegate = self
    authorizationController.presentationContextProvider = self
    authorizationController.performRequests()
}


//MARK: ASAuthorizationControllerDelegate

func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {

}

func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
   print(error)
}


//MARK: ASAuthorizationControllerPresentationContextProviding

func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
    return view.window!
}
}

We have "Sign in With Apple" capabilities Turned on in XCode, and our Identifier for tvOS app is using the same Group App ID as the iOS Identifier so it seems to be fine. There isn't any forums that give this exact error. Can anyone explain what this error code -7104 means, and what can we do to resolve it? Thank you.

0

There are 0 best solutions below