Monday, December 17, 2012

Re: [android-developers] Mobile network idle sockets disconnected

Well, just to recap:

You know that android is not supposed to keep an idle connection open for an extended period.
Also you have declined the option to  use of a heartbeat to keep the connection open.

You also know that GCM (C2DM) have a way of keeping in touch.

At this point the main(only?) route to pursue is to look over the GCM libs from google and see how they do it.

Best regards,
Fred

On 17 December 2012 16:49, Goncalo Oliveira <goncalo@minkan.net> wrote:
Fred,

I do understand that this is not a "standard" for most android apps. Therefore, there are a number of scenarios, like Mark pointed out. In this case, the connection is also used for data pushing. Polling would be much simpler, but it does not fit the required scenario.


On 17 December 2012 16:43, Mark Murphy <mmurphy@commonsware.com> wrote:
On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle
<fred.niggle@googlemail.com> wrote:
> I am wondering why you are trying to maintain an idle connection?

You would do this for any sort of push delivery from the server:
standard push notifications, VOIP for incoming calls, etc.

So, for example, C2DM used to have this sort of heartbeat logic, and I
presume GCM does too.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
http://www.andglobe.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
Gonçalo Oliveira

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
Sent from an Ubuntu Desktop.

Ubuntu Speech input is now available on Google Play, along with Magnetic Door Alarm app.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment