playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.43k stars 953 forks source link

Issue getting Saved Games to work on device #3305

Open lucasecardoso opened 1 week ago

lucasecardoso commented 1 week ago

I've been attempting to make the Saved Games feature work on Android devices. However, despite having enabled and published the Saved Games feature on the play console:

image

even after 48 hours have passed, I keep getting this message on the device:

DEBUG: InternalOpen has failed: java.lang.IllegalStateException: Cannot use snapshots without enabling the 'Saved Game' feature in the Play console

This is how I'm signing in client side:

PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.InitializeInstance(new PlayGamesClientConfiguration.Builder().EnableSavedGames().Build());
PlayGamesPlatform.Activate();
PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptAlways, ProcessAuthentication);

This is the debug output

2024/06/20 11:43:52.854 17634 17656 Info Unity  [Play Games Plugin 0.10.14] 06-20-24 11:43:52 -07:00 DEBUG: Authentication succeeded
2024/06/20 11:43:52.854 17634 17656 Info Unity GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
2024/06/20 11:43:52.854 17634 17656 Info Unity 
2024/06/20 11:43:52.880 17634 17656 Info Unity  [Play Games Plugin 0.10.14] 06-20-24 11:43:52 -07:00 DEBUG: InternalOpen has failed: java.lang.IllegalStateException: Cannot use snapshots without enabling the 'Saved Game' feature in the Play console
2024/06/20 11:43:52.880 17634 17656 Info Unity GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()

The way I'm testing this is by doing a debug, signed AppBundle build on the editor and installing it on the device directly.

Am I missing something? Is it just a situation where I need to wait for longer for the Google services to pick up the change?

Thanks in advance.

smile616 commented 1 week ago

what's your game Play Games app id or package name?

lucasecardoso commented 1 week ago

what's your game Play Games app id or package name?

com.RedNexusGamesInc.Peglin

smile616 commented 4 days ago

@lucasecardoso qq: have you increased the app version after you published the Saved Games feature on the play console? If not, try increasing the app version, build, install and keep the device up for 24 hours.