2 ms·
Well I'm not sure how Telegram does it, but I get messages pushed instantly, it doesn't use Google spy services for that, and it's super low in battery usage ra
by lucb1e 9y ago
Well I'm not sure how Telegram does it, but I get messages pushed instantly, it doesn't use Google spy services for that, and it's super low in battery usage rankings.
I might be wrong but isn't it simply about building a tcp connection whenever Internet is available or changes, and the server will push whenever there's something new? You don't need a single thing polling (which would indeed save power) if the server is pushing. Recently I learned that sleeping (power-conserving) clients are even part of the WiFi spec, so that an access point will hold onto messages for some time until the client is listening again. I assume this is just some ms, but still.