I m working on one Facebook game where i m using Unity. I am facing one problem to implementing chat. OnPublicMessage callback is not calling when i m sending msg to server.
public void OnPublicMessage(BaseEvent evt)
print("Chat message received");
public void OnChatMessage(string newMessage)
print("sending chat message " + newMessage);
_smartFox.Send(new PublicMessageRequest("Hello Everyone"));
Here I am calling OnChatMessage method as per my need.
Now my problem is OnPublicMessage has to call after sending msg to server but "OnPublicMessage" callback is not working. I have seen your given example. And I did exactly same but i don't know where m i doing mistake. Server side i can see the msg like "GenericMessage" when i type something on press enter. That means something happening there.
Please suggest me. I m facing this problem from last two days.