Skip to content

Back button on Android treated as IsFaulted instead of IsCanceled #53

Open
@tommymkc4

Description

@tommymkc4

I have tried on integrating the plugin with my existing cross-platform (Android/iOS) Unity project. I found that after getting into the overlay for choosing Google account on Android device, if I press the device's back button, or somewhere outside the accounts list box, I will be caught by the case of "task.IsFaulted" in Unity's script, instead of "task.IsCanceled" one.

I tried a similar action on iOS by clicking the "Done" button of the redirected browser window, I was successfully caught by the "task.IsCanceled" which I can have some different UI behaviour then.

I have checked the error status code returned on Android side, but it was just a general type "Error" returned, instead of any other understandable types such as "Canceled" or "Interrupted". I cannot just think in the way that error type "Error" would be same as "user cancelation" since the comments in the definition script stated that it is for some kind of error with no further details.

I guess it is not the expected behaviour by the developers because "task.IsCanceled" is triggered in same case, but in an Android native project. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions