iOS/Android Multiplayer - switch current user

Hi,

I have an app where I need to implement multiplayer scenario when several users logs in using the same device (either Android or iOS) and then app switches current user so the logged in users can play in turn.

The questions is how can I switch current user so backendless.userService.currentUser switches accordingly so I can perform further API calls using the corresponding user’s identity?

I’m actually migrating from parse where I was able to accomplish the scenario above by saving every user’s token during login/signup and then use the token to programmatically login the corresponding user to further use API calls (as long as the token is still valid) .

I tried to find possible ways to do similar thing on iOS/Android backendless SDK but with no luck. I can see BackendlessUser has a token but I can’t figure out how to further login/switch the user. Please advice on this.

Thanks

Hello,
Backendless does not provide documented functionality for handling multiple logins.
However you can inspect source code on Github and alter user service login strategy by yourself.

Artur

Thanks Artur for your response.

From your answer I understand that this is something doable however I’m not sure I can see the right way to accomplish that kind of user switching. Could you please point me to the right direction on how this can be accomplished if possible describing the key steps for this in terms of iOS/Android SDK?

Thanks!

Hello,
The requested information is not covered by free support, please contact sales@backendless.com to discuss paid support plan.
Artur