google-signin-unity icon indicating copy to clipboard operation
google-signin-unity copied to clipboard

Handle RESULT_CANCELED at onActivityResult to detect user cancel

Open DyLoGames opened this issue 1 year ago • 1 comments

This fixes the error that occurred when you canceled the login process by clicking the "Back" button on your phone on Android or by pressing outside the account selection box. The error was that instead of detecting that action as task.IsCanceled, it was detected as task.IsFaulted and left an error. In my case the error was something like: GoogleSignIn+Exception.SignIn.

DyLoGames avatar Feb 11 '24 13:02 DyLoGames

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Feb 11 '24 13:02 google-cla[bot]