Post

Replies

Boosts

Views

Activity

Sign In with Apple Button - Full Name Scope Issue
I'm unable to request the full name in my SignInWithAppleButton. However, I can correctly gather the apple id and use the email in the requested scope. I have a testing and production project which have the same exact code block for reproducing the sign in button experience within an iOS app. In the testing project, I'm able to gather the full name and email (just as intended) with the same "Sign in with Apple" Capability and signing + signing certificate. Which leads me to think there's some conflict in entitlements or target properties which conflict with ability to gather the full name in the "SignInWithAppleButton" Any help with this would be greatly appreciated before I have to run through each entitlement/property and play with how it affects the SSO capability. Thank you in advance! Code block: import SwiftUI import AuthenticationServices struct ContentView: View { var body: some View { VStack { SignInWithAppleButton(.continue, onRequest: {request in request.requestedScopes = [.fullName, .email] }, onCompletion: {result in switch result { case .success(let auth): guard let cred = auth as? ASAuthorizationAppleIDCredential else {return} print(cred.authorizedScopes) case .failure(let err): print(err) } }) } .padding() } }
1
0
336
Aug ’24