How do I know if the user is already logged on to another device?

0

I have an Android application that connects to the Parse.com API, but it could also be another RestFul API that I created myself. The question is how to control sessions on different devices?

Example, a user can only be logged on to a single device at a given time.

    
asked by anonymous 01.09.2015 / 19:56

1 answer

1

Matthew, so I understand Parse does not do this kind of session control for you. I may be wrong, but Parse sessions are fairly limited, and only recently have they included the session validity feature, so you have an idea! Until a few months the user session was eternal, remaining the same after it changed the password.

One solution would be to create your control. If your goal is to keep the data synchronized across multiple devices one way would be to register all the user's devices and create flags in their records reporting the device that inserted or changed the registry. Then through a CloudCode script you send msg to the devices that need to be synchronized again.

I think this would be a path.

    
03.10.2015 / 20:04