Hi everybody.
I'm using the Channel API a quiet long time. I have one but critical problem that I can't solve.
I have an iPhone app that using webview with the JS on the background. It works very well.
I put an alert("on opened") in the onOpened function. Sometimes after I get an "on opened" message, I can't get actual messages (on message).
I double checked everything - valid token, client id etc'.
The interesting thing is that after I re-open the app (including get from the server and load the JS again) it might work.
After error 400 - I have succeeded to reconnect to the channel with socket.close().
After error 401 - I have succeeded to get new valid token and reconnect.
after these 2 errors recovery I get messages - the problem is not with these error (i think)
Hope that someone will give me an ideas.
BR,
Tal