play-games-plugin-for-unity icon indicating copy to clipboard operation
play-games-plugin-for-unity copied to clipboard

After the game is uninstalled and reinstalled, the playgameservices data is gone

Open longshaowu opened this issue 2 years ago • 10 comments

PlayGamesPlatform.Instance.SavedGame.OpenWithAutomaticConflictResolution( name, DataSource.ReadNetworkOnly, ConflictResolutionStrategy.UseLastKnownGood, onConnectionOpen);

After the game is uninstalled and reinstalled, the playgameservices data is gone. Only one phone appears, other phone data is still there.

longshaowu avatar May 31 '22 06:05 longshaowu

I have the same problem. I can share save data on multiple devices, but when I uninstall, the data is lost. Is this the correct behavior? I am using v11.01. FetchAllSavedGames also returns an empty list

kyubuns avatar Jun 03 '22 04:06 kyubuns

Hello, I found a workaround for this issue. Try to tap on the refresh button when you reinstall the app.

Ghigolus avatar Jun 15 '22 13:06 Ghigolus

Hello, I found a workaround for this issue. Try to tap on the refresh button when you reinstall the app.

Sorry, which refresh button are you talking about?

kyubuns avatar Jun 16 '22 05:06 kyubuns

when you try to select saves, it opens a panel with all your saves. I think that here you cannot find any of your saved data. So, in this panel there is a refresh button in the top right corner. If you tap on it, you will be able to see your saves. You have to do this only the first time after the reinstall.

Ghigolus avatar Jun 16 '22 05:06 Ghigolus

Oh, I see! I didn't call ShowSelectSavedGameUI because I only need one saved data for my game.

I do not think this problem has been solved. I wish we could call “refresh” from scripts... Does anyone know of any other information?

kyubuns avatar Jun 16 '22 05:06 kyubuns

Yes, I would like to call some kind of Refresh() from script. This will fix my issue too. Right now I have to inform the user that he has to click on the refresh button but it is not the best way to proceed.. In your case you need to find how to refresh it automatically or wait for an update of this plugin

Ghigolus avatar Jun 16 '22 05:06 Ghigolus

Same issue for me. https://github.com/playgameservices/play-games-plugin-for-unity/issues/3167#issuecomment-1159644069

KyryloKuzyk avatar Jun 19 '22 07:06 KyryloKuzyk

I think I've figured out the cause of the issue, please see this bug report: https://github.com/playgameservices/play-games-plugin-for-unity/issues/3169

@longshaowu @Ghigolus @kyubuns Please confirm your issue is connected to my bug report by launching the adb tool with these filters: adb logcat -s Unity Volley SnapshotUploaderImpl And check if you also have these errors:

E Volley  : [348] BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/games/v1/snapshotsExtended/gameSave:prepareRevision
W SnapshotUploaderImpl: {"code":403,"errors":[{"reason":"UrlLeaseLimitExceeded","domain":"usageLimits","message":"Too many pending uploads for this snapshot. Please finish or cancel some before creating more."}]}

KyryloKuzyk avatar Jun 20 '22 11:06 KyryloKuzyk

I'm sorry about this. I thought I was using DataSource.ReadNetworkOnly, but I just called it with DataSource.ReadCacheOrNetwork I changed the code to the normal "use DataSource.ReadNetworkOnly only the first time after startup" code and the problem is solved.

kyubuns avatar Jun 25 '22 14:06 kyubuns

I'm sorry about this. I thought I was using DataSource.ReadNetworkOnly, but I just called it with DataSource.ReadCacheOrNetwork I changed the code to the normal "use DataSource.ReadNetworkOnly only the first time after startup" code and the problem is solved.

Did the same but did not fix the problem, unfortunately.

fadizant avatar Aug 10 '23 23:08 fadizant