1.Device is already offline when the user opens the game and has ALREADY logged in previously.
3. Game launches, logs in and loads saved games, device loses connectivity, then you try to save a new game.
Everything works as usual, which is great. I guess there will be a background sync at some point when the connection is back.
Need to check how iOS and the GameCentre handle this.
Device is already offline when the user opens the game and has NEVER logged in previously.
Obviously does not connect. Needs to double check what the error is in this case. Need to check what happens on iOS too.
I’ve got another scenario that didn’t include in the main post:
Play Games not running or disabled: same result as #2.
So the question here for scenarios 2 and 4, what should happen? The option I have in mind would be to show a message to the user, saying that the connection with Play Games is not possible at the moment, and game progress will not be save. And just play the game from the beginning, storing the progress in memory, until the game is closed.
How is this usually handled? Any advice will be much appreciated.
in my guess, your game should have two storge level.
first, you should store player game data in device local storge.
second, when player login and the network connection is ok, you can save player’s data to cloud.