简体   繁体   中英

Google Play Saved Games Android: result of Games.Snapshots.open()/resolveConflict() frequently has status 16

Methods Games.Snapshots.open() and Games.Snapshots.resolveConflict() (and maybe other too, haven't checked so far) sometimes (ie, not always, but frequently ) return the result with the status code equal to 16 .

There is no explanation of 16 in the GamesStatusCodes documentation , nor in the Snapshots documentation itself. I tried looking at GamesStatusCodes in Android Studio, but there are present only codes from 0 to 15 and then 2000 and above. GamesStatusCodes.getStatusString also doesn't know 16 and outputs Status code (16) not found!

So what 16 does exactly mean, what causes it to appear and how should I handle it in my code? Or am I just missing something?

I found out that 16 is found in the CommonStatusCodes , and it means CANCELED .

The result was canceled either due to client disconnect or cancel().

https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM