sent chat api not working

0 votes

I sent chat from admin panel  - https://apphq.shephertz.com/appWarp#/testManager

But not receiving in android app.

created and joined room in android app , and subscribed to that room from admin panel .

Then sentchat , it shows done on response in admin panel.

But not geting anythinh in android app.

 

warpClient.addNotificationListener(this);
warpClient.addChatRequestListener(this);
@Override
public void onChatReceived(final ChatEvent chatEvent) {

    Log.e("Chat  ","Message > "+chatEvent.getMessage());

}

asked Jan 11 in Work In Progress by tomstom212 (16 points)

1 Answer

+1 vote
 
Best answer

Hi Tomstom,

Greetings from ShepHertz!!!!!!!!!

Here are the scenario those will work in sendChat API.

  • To receive Chat message, you need to subscribe to that room.
  • To send Chat messages, you need to join the room
  • To achieve receive and send functionality you need to join and subscribe the room

Let me know if it helps.

Thanks

Vishnu Garg

answered Jan 11 by Vishnu Garg (663 points)
selected Jan 11 by tomstom212
Hai Vishnu ,

send chat now working :) .
I can send using admin panel .
But i am trying to make a quiz app.
I want to receive question and options object  from server .
After 10 second change to next question.
If you have any API , how will you sent this to a particular room ? .
I have a DB of question and options .
We also provide AppWarpS2 which is the extended version of AppWarp. Where you can write your server logic by overriding the AppWarp feature with your game logic.
You need to deploy the same.
You can go through with the AppWarps2 Documentation
http://appwarps2.shephertz.com/dev-center/
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
Migrate from Parse to ShepHertz App42
...