Hello,
I’m using Unity accounts for my game, and I’ve started to run into an issue.
When the player exits the web page to log in to their Unity account, the game doesn’t receive the SignInFailed event. The SignIn event works correctly when the player logs into his account.
When I await on the method PlayerAccountService.Instance.StartSignInAsync(), no exception is thrown, and the execution stays stuck there.
This wasn’t the case a few days ago. I was correctly receiving the SignInFailed event, and the execution was not stuck in StartSignInAsync() after the player left the login page.
Is there another better way to know if the player left the login page, to be able to resume the game and stop waiting on Unity’s callback?
Thank you!
I am having the same issue.
There is no callback event to notify us if the user exits/cancels the Unity Authentication page, and therefore we do not know how/when to adjust our game behavior if this happens.
I have the following in my initialization method, but “unity_signInFailed” is not called when the user cancels the authentication page. All of the other callbacks work correctly.
// init unity services
await UnityServices.InitializeAsync();
// set up authentication callback events
// anonymous login
AuthenticationService.Instance.SignedIn += auth_signInSuccess;
AuthenticationService.Instance.SignInFailed += auth_signInFailed;
AuthenticationService.Instance.SignedOut += auth_signedOut;
AuthenticationService.Instance.Expired += auth_sessionExpired;
// unity account
PlayerAccountService.Instance.SignedIn += unity_signInSuccess;
PlayerAccountService.Instance.SignInFailed += unity_signInFailed;
PlayerAccountService.Instance.SignedOut += unity_signedOut;
// begin unity account sign in
await PlayerAccountService.Instance.StartSignInAsync()
Have you made any progress in resolving this issue?