Java MIDlet API Forums

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello,
 
Does the 7925G support HTTP long polling? We are trying to reformat a webpage to display on the phone browser and the webpage requires HTTP long polling

Can you provide a few more details about the specific implementation you are looking to build?

If you are referring to the XML services display, this simply formats/displays specific XML documents - there is no scripting or other 'dynamic' capability, beyond refreshing the entire page via Refresh header.

If you are talking about using the Java midlet capabilities, please let us know which API components you are looking to use, and what you require from 'long poll' functionality.  It should be possible to use the midlet HTTP request object to call a URL, providing a lengthy timeout to wait for the server to respond, i.e. the Ajax/long-poll pattern.

Hi Dave,

let me respond on Abhi's behalf...

We have an existing web application created by a vendor which runs on safari on an iPhone. We were thinking of deploying the same web application on the 7925G however that would require http long polling support in the browser. Sounds like the 7925G browser does not.

We have also been looking at the java MIDlet approach, and it sounds like that is the best option in this case.

Thanks for your help,

Peter

On 09/01/2013 16:46, Cisco Developer Community Forums wrote:
> Peter Livingston has created a new message in the forum "Technical
> Discussion":
> -------------------------------------------------------------- Hi Dave,
>
> let me respond on Abhi's behalf...
>
> We have an existing web application created by a vendor which runs on
> safari on an iPhone. We were thinking of deploying the same web
> application on the 7925G however that would require http long polling
> support in the browser. Sounds like the 7925G browser does not.
>
> We have also been looking at the java MIDlet approach, and it sounds
> like that is the best option in this case.
>
> Thanks for your help,
>
> Peter
> --
> To respond to this post, please click the following link:
> http://developer.cisco.com/web/jmapi/forums/-/message_boards/view_message/10084606
> or simply reply to this email.

For what it's worth....

We've hit a problem using long polling in a midlet, works ok in the
emualtor but on the device it blocks and causes the UI to freeze - we
asked for a fixed and was told it would be solved but we were never
given a fix

We ended up making a request once every 10 seconds in a background
thread and waited for zero seconds on the server - not as good but it's
the best we could get

Hope this helps

Trev

Sounds like known issue: CSCtz35941 - Midlet: HttpConnection request blocks UI input
This should be resolved in later firmware, starting with 1.4(3)SR1

 Go

By API/SDK: