I build an android game and I am working with google drive to synchronize the progress of the user.
Rite now I build a mechanism to sync file to drive. This file may include game progress-information or user settings.
Users can play my game offline, and once connection is available their progress will be saved.
This created a few problematic scenarios for me.
User is playing on Tablet, his progress is saved. Next day he is playing on handset without internet connection, making a small progress, and then entering the application again with internet connection. So I got two files, his local changes from when he played offline and the progress on tablet from yesterday. What should I do?
- Use tablet progress as it's the most recent file on drive
- Use handset progress as it's the most recent file from the two.
- Present the problem to the user and let him to decide.
Same scenario as above only it's happening in the middle of the game, suddenly I am getting connection and see a progress from yesterday with different device.