Open DmitriySmerchinskiy opened 7 months ago
Also added iCloud support turning iCloud documents checkbox on. Then, I found that iCloud stores data from my app, so looks like this issue is related to loading SavedGames:
gameServiceWrapper.getGameServicesHandler().getSavedGames()
Hi, and thank you so much for your library. It's very useful for my game.
It works pretty straightforward for my Android build, but doesn't work on iOS. I use emulator for iOS testing and see logs, that the library successfully performed game save, but when trying to load I see that there aren't any saved files. Of course, I logged in before trying to obtain saves. And on my emulator, I logged in with Apple ID and iCloud available also. I also tried to test on real device, but after removing game and reinstalling it saves didn't restore. Unfortunately I can't see logs from my real devices due to recent updates of iOS. So I only can see logs from the emulator.
This is my code how I create GameCenterServiceHandler:
This is my code how I login before trying to load saves:
This is my code how I load save file:
This is my code how I save file:
I load saves on app launch and save each time data is changed. So I see these logs on startup: (I show properties.json as an example)
When trying to save, I see these logs:
My environment:
Also, I did everything according to this guide
Will be very glad to get help from you. Thanks in advance.