I'm using "Sign in with Apple" in my iOS app. I'm pretty much following the boilerplate code from https://developer.apple.com/documentation/authenticationservices/implementing_user_authentication_with_sign_in_with_apple, and all seems to be working fine for logging in:
I get a guid-looking identifier in appleIDCredential.user which I store persistently, as well as the user's name and email (if provided).
the problem, is when I kill and restart my my "production" app (a "app store ready" release build, from test flight, but with extra logging), i reload the user identifier and I can confirm in Console.app that it's the same as was stored in the previous run, *but* getCredentialState always returns 2, "not found".
if I manually log in again, I get then same identifier as before, but on next relaunch, I still get "not found" and have to log in again.
what could be going on, what could I be missing?
I'm testing on iOS 13.0 thru 13.6, also 14.0 beta, same everywhere, since day one.
I get a guid-looking identifier in appleIDCredential.user which I store persistently, as well as the user's name and email (if provided).
the problem, is when I kill and restart my my "production" app (a "app store ready" release build, from test flight, but with extra logging), i reload the user identifier and I can confirm in Console.app that it's the same as was stored in the previous run, *but* getCredentialState always returns 2, "not found".
if I manually log in again, I get then same identifier as before, but on next relaunch, I still get "not found" and have to log in again.
what could be going on, what could I be missing?
I'm testing on iOS 13.0 thru 13.6, also 14.0 beta, same everywhere, since day one.