View Single Post
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#2133
Originally Posted by Scorpius View Post
Not really because now they are not connected all the time. For example Windows Phone doesn't support background sockets, so if you switch to another application it disconnects. They use something called "background push agents" for this, that I don't really know how it works.
I don't know either. But I think both Windows Phone and iOS have some sort of central notification server, so I assume that even if Whatsapp needs a keep-alive every second (or 5 or whatever), it is the server that responds to that. Whenever the client needs anything, the server can wake him up (using a long-lived connection, probably with a wake-up every 10min or so to prevent NAT from killing the connection).

In any case, iDevices, Androids and Windows Phones probably have a much shorter battery life than the N900 (don't have experience with any of those, but friends report charging every night..), so the effect is not so significant..

In any case, Scorpius, you've done what you had to do (read: what people here wanted you to do! and your new implementation works flawlessly, so no complaints here
 

The Following User Says Thank You to reinob For This Useful Post: