This is a migrated thread and some comments may be shown as answers.

Websocket debugging

5 Answers 163 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark
Top achievements
Rank 1
Mark asked on 11 Mar 2013, 08:55 AM
Hi,

I am evaluating Icenium with a simple app using WebSockets and attempting to deploy to Android*.

The Mist interface is a joy to use to build/demo the app and build a deployable apk. While the app behaves perfectly in the demo screens when deployed to Android the WebSocket functionality is not available.

While I can see that the WebSocket object is created/initialised and the functions assigned the functions themselves (e.g. onopen) are never called . 

Can you kindly let me know if WebSockets are supported and what debug options are available (apart from numerous alert(...) statements)?

Regards,
Mark

ps) Unfortunately I am unable to debug using Graphite (no Windows). 

* Galaxy S2 (4.0.4)

5 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 11 Mar 2013, 09:24 AM
Hello Mark,

As per this matrix WebSockets are not supported in the default Android browser, thus in Cordova hybrid applications. There are some old shims that have added partial support, but none of them is integrated into Cordova's code base. You can still using long-polling though.

As a note WebSockets are supported on iOS.


Regards,
Stefan Dobrev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Mark
Top achievements
Rank 1
answered on 11 Mar 2013, 09:59 AM
Hi Stefan,

Thanks for the prompt response.

To meet latency requirements, the app heavily relies on event-driven messages from the server which makes long-polling a very unappealing option (i.e. building a native 'droid app would make more sense).

Do you know of anything (shims or otherwise) supported by Icenium to enable this functionality?

Regards,
Mark
0
Mark
Top achievements
Rank 1
answered on 11 Mar 2013, 04:51 PM
Ok, so you can enable this functionality by hacking a WebSockets plugin for android and building cordova manually. This is great as at least the application code is consistent, if not the build process.

Do you guys have anything on the roadmap for adding such a plugin to Icenium? There appears to be something in the cordova incubator however, there doesn't appear to be any active development on it.

Regards,
Mark
0
Steve
Telerik team
answered on 12 Mar 2013, 02:14 PM
Hi Mark,

We have not had a request for WebSockets plug-in so far, but our planning is driven by customer demand, so if you suggest this functionality on our Feedback Portal and it gathers enough votes, we'll have it in mind.

In general you can read more about our plans for generic plug-ins support in the following forum thread.

Kind regards,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Mark
Top achievements
Rank 1
answered on 13 Mar 2013, 09:57 AM
Thanks Steve,

I've added a request in the feedback portal. 

Incidentally - as the version control integration in the Mist browser is so seamless I can still use it as an IDE for both iOS and Android even if the latter is a manual build - great feature!

Regards,
Mark
Tags
HTML5, CSS, JavaScript
Asked by
Mark
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Mark
Top achievements
Rank 1
Steve
Telerik team
Mark
Top achievements
Rank 1
Share this question
or