Giter VIP home page Giter VIP logo

Comments (11)

smile616 avatar smile616 commented on July 2, 2024

Would it be possible to share logcats/bug reports with us? Preferably link to a Google Drive folder but, please, don't accept access request unless it from @google.com email addresses.

See https://developer.android.com/studio/debug/bug-report for the guid on capture and read bug reports.

from android-basic-samples.

imixerpro avatar imixerpro commented on July 2, 2024

Thanks for jumping in.

This is the part of the log which looks suspicious to us.

09-01 12:48:53.142 12434 30237 E Volley  : [98461] cmv.b: Unexpected response code 403 for https://www.googleapis.com/drive/v2beta/apps/self?prettyPrint=false&fields=id
09-01 12:48:53.147 12434 13963 W NetworkResponseErrorDec: StatusCode:403 Reason:[rateLimitExceeded] Location:[]
09-01 12:48:53.156 13420 13420 V GamesNativeSDK: Play Games callback indicates connection failure.
09-01 12:48:53.157 13420 14261 I GamesNativeSDK: Error connecting to Google Play: code 8.
09-01 12:48:53.163 13420 13532 V WormsZone: GameServices: Sign in finished with a result of 'SIGN IN': -3 'ERROR_NOT_AUTHORIZED'

Here are the links to the bugreports for store version and the version signed with the upload certificate. Just to make sure.

https://drive.google.com/file/d/1qVV95Yj_Dku-KMPfxzerubnJ9vER1rse/view?usp=sharing
https://drive.google.com/file/d/1A8bTOKCwfTlfyus2KQSMqUnqeu8GFItn/view?usp=sharing

from android-basic-samples.

smile616 avatar smile616 commented on July 2, 2024

(internal issue # b/198415052)

from android-basic-samples.

smile616 avatar smile616 commented on July 2, 2024

@imixerpro, bug reports received. You could stop share those files.

At glance, StatusCode:403 Reason:[rateLimitExceeded] suggests that the account in use hitting the API rate limit. Could you try use a different account (that was not used for awhile) and see if you can reproduce the issue?

from android-basic-samples.

imixerpro avatar imixerpro commented on July 2, 2024

Hmm. It depends. It is a bit complicated but the full story is:

For most of our developers/testers running the debug build signed with upload certificate this is easily reproducible, however, we've never managed to do this with a version downloaded from Google Play. Our engineer managed to reproduce if for GP version recently. He says this is not easy to do:

  1. Open-close the application multiple times (this leads to logging in and storing/restoring profile)
  2. Remove the application from the device
  3. Install the application (using ADB or from GP)
  4. When application tries to login to GPG we get this error

Please, note that at some point application is still able to log in again. Usually it is less than a few hours, but we didn't try to figure out the reset period.

Please, note that we can't tell for sure that the following experiments are absolutely reproducible and/or that it matters what application or build is used.

When we've met this bug for the first time, using the account which didn't login for a few days led to the same response. Please, note that developer build had this issue while GP didn't.

We've got 2 applications. It is possible that one of applications refuse to login to GPG while the other is able to do this at the same time. The very same device with the very same account was used.

from android-basic-samples.

imixerpro avatar imixerpro commented on July 2, 2024

I've just noticed the following message in the log:
GamesNativeSDK: Exception in com/google/android/gms/games/snapshot/Snapshots.open: java.lang.IllegalStateException: Must include Drive.SCOPE_APPFOLDER to use snapshots!.

We've received notification e-mail about Google Dirve API changes but it doesn't look like we can change anything on our side. Any ideas what we can actually do about this?

from android-basic-samples.

smile616 avatar smile616 commented on July 2, 2024

@imixerpro
If you see Must include Drive.SCOPE_APPFOLDER to use snapshots!., you definitely need to add Drive.SCOPE_APPFOLDER.

For that you could either use Games#SCOPE_GAMES_SNAPSHOTS (see https://developers.google.com/android/reference/com/google/android/gms/games/Games#public-static-final-scope-scope_games_snapshots)
or Scope(Scopes.DRIVE_APPFOLDER)

from android-basic-samples.

imixerpro avatar imixerpro commented on July 2, 2024

Ok. I see. The issue is that we are using GPG C++ SDK for this which is provided by Google. Could you please, clarify if we could get an updated GPG C++ SDK or if we could get GPG C++ SDK sources so that we can fix this on our own? Unfortunately nobody answers for GPG C++ SDK bug requests for more than a year, I believe.

from android-basic-samples.

smile616 avatar smile616 commented on July 2, 2024

when you are calling gpg::GameServices::Builder() do you call EnableSnapshots() on the returned value?
(See https://developers.google.com/games/services/cpp/savedgames#enabling_the_service)

from android-basic-samples.

imixerpro avatar imixerpro commented on July 2, 2024

We do.

Just to make sure we are on the same page: We've added snapshot functionality in 2020. In 2021 we've started having issues getting saved games after clean install in our office. And today I've noticed the issue with the missing Drive.SCOPE_APPFOLDER permissin. We didn't change anything significat since the snapshot functionality was released for the first time for our users.

from android-basic-samples.

imixerpro avatar imixerpro commented on July 2, 2024

Hi.

It seems that PGS team is going to keep C++ SDK in sync with the java SDK which is really great news for us. Any update on the schedule? I'm concerned we might get serious issues for our users due to the latest cloud API changes.

from android-basic-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.