Sign In with Apple Button on tvOS isn't working

I have a SwiftUI application with a SignInWithAppleButton. However when I press the button with the remote I don't get any callbacks in the blocks. There is no error in the console that I can find.

Should the button work on tvOS 14?

The code is simple:

import SwiftUI
import AuthenticationServices

struct SignInView: View {
    var body: some View {
        VStack(spacing: 40) {
            Text("Welcome to My App")
                .font(.system(size: 50.0, weight: .bold))

            SignInWithAppleButton(.signIn) { request in
                request.requestedScopes = [.fullName, .email]
            } onCompletion: { result in
                print(result)
            }
            .signInWithAppleButtonStyle(.whiteOutline)
            .frame(width: 300, height: 50)
        }
    }
}
Post not yet marked as solved Up vote post of venturabumm Down vote post of venturabumm
917 views

Replies

I never did get this to work. Ended up implementing my own button code.

I have the same problem on tvOS 17. The button is working on both iOS and macOS, and I can successfully sign-in with it, but nothing happens when I click on it on tvOS (the onRequest function never gets called).

I created a view with only the button in it, but same result.

struct SignInView: View {
    @EnvironmentObject private var authModel: AuthModel
    
    var body: some View {
        SignInWithAppleButton(onRequest: authModel.authenticationAppleRequest, onCompletion: authModel.authenticationAppleCompletion)
    }
}

Is that a known problem?

Did someone found a way to make it works?

Same issue, shocking