El 31/10/14 a las 14:39, Jan Jongboom escribió:
> I know on Android that if you have a socket open and the device goes to sleep 
> it will not reply to the ACK messages from the server, rendering the socket 
> useless. I guess we have something special to keep the Simple Push socket 
> alive, can someone shed some light on this?
>
> (Background info: I want a permanent socket connection and don't wanna use 
> Simple Push, so far the socket seems to keep being alive but I don't think it 
> will last forever)
Hi Jan,

The PUSH socket is at Gecko level [1]. I suppose you want this feature
at webapp level. Right?

Anyway, I don't understand why you cann't use PUSH, or better, I would
like to understand why Simple PUSH doesn't fit your needs in order to
improve it !

There're many reasons to use PUSH platforms instead maintain sockets
opened all the time. Mainly by third party applications.

If you rely on an open socket in your app... What happens if the app. is
closed by the system? you loose the channel with your client. In that
case, Simple PUSH is able to wake up your app and continue working.

Also, you reduce the battery of you user's device, since maintain a
connection open all the time through 3G is 100 times more consuming that
in sleep states. [2]

3G networks work in a different way as ethernet or WiFi do. They are
designed to reduce the energy when not needed and we, as developers,
should use the network in a "greener" way.

It's preferible to use simple push and then, when you have a dedicated
channel, send all the things you need, better if you can cache the
required data and send into the same DCH (with the assigned BW) to the
server so you reduce signalling and use your all the channel BW better.

Mobile operators, mainly Telefonica, are deploying wakeup servers to
also close the System PUSH Socket and Firefox OS Simple PUSH can use
these new platform too. [3]


[1] http://dxr.mozilla.org/mozilla-central/source/dom/push
[2] http://www.lacofa.es/blog/2012/10/19/notification-server/?lang=en
[3] https://github.com/telefonicaid/wakeup_platform

Best regards,
Fernando.


________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede 
contener información privilegiada o confidencial y es para uso exclusivo de la 
persona o entidad de destino. Si no es usted. el destinatario indicado, queda 
notificado de que la lectura, utilización, divulgación y/o copia sin 
autorización puede estar prohibida en virtud de la legislación vigente. Si ha 
recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente 
por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential 
information intended only for the use of the individual or entity named above. 
If the reader of this message is not the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
is strictly prohibited. If you have received this transmission in error, do not 
read it. Please immediately reply to the sender that you have received this 
communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode 
conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa 
ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica 
notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização 
pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem 
por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e 
proceda a sua destruição
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to