Playing with the same account on multiple devices. How?

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!!

I’m not certain but in order to use the same account on 2 devices they’d need to log out of the account on one device and log in on t’other.

as it was mentioned above, you should not be able to run the same account on multiple devices. if you want data persistent across devices, look into authentication services.
in the case that you want to allow the same account to be logged in multiple devices at the same time, you need a way to pin the clients back. rpc are pretty much the unity solution to this, the server will fire an rpc that fires an event in the client. sadly all clients will receive it and decide if they need to consume it…this is unless you want to write and support your own custom solution (i do not think UGS supports this) that allows clients to send a server request that maps the necessary data for the server to be able to target that client back