I created a game and published it to the app stores. Currently I save their account information to a remote database. My users are now requesting the ability to be able to play with the same account on multiple devices (ie. same account, but they want to play on their iphone and also on the ipad).
What is the strategy to do this? Obviously I can allow them to login to both devices… but how would I handle the fact that if they logged into both devices at the same time, data will get out of sync.
For example, they play on their iphone and spend 10 gold (in game currency). The ipad has no idea they spent this gold. So now both devices show a different gold balance.
I do have checks on the server when they spend gold to make sure they do in fact have enough, but I am not sure if there is a better way.
Ideally, if there was a strategy to prevent them from being logged into the account on two devices at the exact same time, that would be ideal.
Any thoughts?
Thanks!!