Abedalkareem / games_services

A Flutter plugin to support game center and google play games services.
118 stars 48 forks source link

[Android] Cannot use snapshots without enabling the 'Saved Game' feature in the Play console #135

Closed erperejildo closed 8 months ago

erperejildo commented 9 months ago

The error seems pretty self-explanatory, but I have this already enabled. Google's documentation says it can take up to 24h to activate, but I activated this days ago and I constantly get this error, no matter how long I wait. Looking in google for extra configuration, I don't find anything else.

image

image

erperejildo commented 8 months ago

any update?

theLee3 commented 8 months ago

Be sure you have added the drive.appdata scope to your OAuth consent screen via the GCP console, under APIs & Services.

erperejildo commented 8 months ago

Be sure you have added the drive.appdata scope to your OAuth consent screen via the GCP console, under APIs & Services.

image

but the OAuth consent screen wasn't published. Is that the problem? I was testing on emulator

theLee3 commented 8 months ago

No this should not be a problem. Is everything working on that build except saved games? Try toggling the saved games off on Google Play Console (make sure the change is published for the Game Project). Then toggle it back on and see if it resolves the issue.

erperejildo commented 8 months ago

No this should not be a problem. Is everything working on that build except saved games? Try toggling the saved games off on Google Play Console (make sure the change is published for the Game Project). Then toggle it back on and see if it resolves the issue.

leaderboard, score, achievements... everything work. I tried already to enable/disable it. What I didn't do is wait like hours/days before enabling it back

theLee3 commented 8 months ago

I don't think that is necessary. Scroll to the bottom of the PGS configuration in the Play Console and ensure that there Google Drive API is checked. Then click on the link just above that to view the project in GCP. Scroll to the bottom and see which services are receiving requests.

You can also select the Drive API to go from the name column, then select the credentials tab on the next screen, and ensure that all of your client ids are listed (release, debug, etc.)

erperejildo commented 8 months ago

It is:

image

Google Drive API is not receiving anything:

image

image

theLee3 commented 8 months ago

Select the credentials tab on the Google Drive API view. And see which clients have access to it.

erperejildo commented 8 months ago

that's correct, the ones I created for this project:

image

theLee3 commented 8 months ago

I would reach out to Google support as it seems everything is configured correctly. The fact that you're being told it isn't turned on for the project points to an issue on their end.

theLee3 commented 8 months ago

First, try clearing the data for Play Games Services under the app settings and try again.

theLee3 commented 8 months ago

A couple of more thoughts on what may cause this before you contact Google support.

  1. The device has not had a network connection since the setting has been activated.
  2. The version of Play Games Services is sufficiently outdated so as to not properly handle v2 scopes.

IDK, just brainstorming here.

erperejildo commented 8 months ago

I tried all of that but not sure why it's not working. I'll try again in a few days

erperejildo commented 8 months ago

I tried again today and it seems to work. They say 24h after you enable it but it happened like a week or so for me.

Anyway... working now.