set user profile image in game room

0 votes

Is there any way to pass user's image joined in the game room so that both the users can see their opponent's image in game screen.

asked Feb 22, 2017 in App42PaaS & BPaaS by Sallu Salman (10 points)

1 Answer

0 votes

Hi Salman,

Greetings from ShepHertz!!!!

You can pass the extra data in connectWithUserName(userName, extraData) API, you can pass json object as a String for this. On AppWarpS2 server side you can override handleAddUserRequest at ZoneAdapter level.

You can save the same data in a collection against a user. While other user connected you can share the same.

Let me know if it helps.

 

Thanks

Vishnu Garg

answered Feb 23, 2017 by Vishnu Garg (674 points)
I can pass only two variables to this API from android, String username and String AuthData. Im already passing sessionId as AuthData. Now how will i pass the extra data to into the API?
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...