playgameservices / play-games-plugin-for-unity

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

Cloud saves sometimes deleted? #3298

Open FunnerSoft opened 1 month ago

FunnerSoft commented 1 month ago

Hello,

I have had an ongoing issue with my players' cloud saves sometimes becoming deleted.

They will be able to play for a long time. Frequently opening and closing the app over many days or months. But then suddenly, the cloud save will become missing.

When this happens I get a 'success' result from PlayGamesPlatform.Instance.SavedGame.OpenWithAutomaticConflictResolution.

I then also get a 'success' result from PlayGamesPlatform.Instance.SavedGame.ReadBinaryData.

However, the byte[] that is passed to my delegate is either null or zero length.

Sadly, I have never been able to find the repro steps.

I am quite certain that I am only providing valid data to PlayGamesPlatform.Instance.SavedGame.CommitUpdate. I never let my code pass a null array or a zero length array into the method.

I recently got a report from a player about their data being missing. I took a look at "google cloud console api and service charts" at https://console.cloud.google.com/apis/api/games.googleapis.com/metrics?project=

And I noticed these errors temp

Do you think these might be related?

I currently treat the google cloud saves as the primary save file. Is that not safe?

Thank you for any assistance you might be able to provide. I appreciate it