any problem with the activity?
Is there anything with the server or am I cursed?
Bruno
Hi Bruno,
I just tried this and my activity did not work on my very first try, but it has worked on subsequent tries (using Channel_OnDataReceived()).
Perhaps you could close the activity window and try again. Or have you changed anything lately? Please let us know if that worked, or if you are still having issues...
Gruia
alabama wrote:
Hi, I know it sounds weird but the function Channel_OnDataReceived() that used to work in my activity do not work at all now...
Is there anything with the server or am I cursed?
Bruno
Have you set the window.onload=OnLoadEvent; defined the OnLoadEvent, notified the agent of the load and so?
I do something like this:
function Channel_OnDataReceived()
{
var data = window.external.Channel.Data;
// First command to receive from the Agent
if (data == "AGENT_READY")
{
Channel_OnRemoteAppLoaded();
agentIsReady = true;
return;
}
[...]
}
I launch the invitation to open activity, open it, the activity notifies the agent that it's ready, and the agent replies "I'm ready too" (that's when I call Channel_OnRemoteAppLoaded()).
My communication is working without problems on both directions, so maybe it's a problem of your code.