Sign In Register

How can we help you today?

Start a new topic
Answered

Getting custom message at client code

Hi 

I have made a script message and I am calling that message when the a challenge is started. I know that I receive a message ChallengeStartedMessage when ever a challenge begin, in onMessage of MessageReceivedListener. But I also want to receive the script message that I have created.

Is there any way to receive the custom message.


Regards

Shubham


Best Answer

With the Android SDK, the listener should be called for all messages, make sure to at least have Socket set to On for the particular message so it can be delivered to the SDK.


Shane


There is a way, using Spark.ScriptMessage in cloud code, but not quite sure how to do it...I will let you know once I get the concept, in mean time if you got it work let me know too...

 

Answer

With the Android SDK, the listener should be called for all messages, make sure to at least have Socket set to On for the particular message so it can be delivered to the SDK.


Shane

Login to post a comment