2 ms·
>Or, in my own words, ignore Push notifications and just use WebSockets. Battery consumption is a big difference between the two. To keep the connection open,
by npteljes 4y ago
>Or, in my own words, ignore Push notifications and just use WebSockets.
Battery consumption is a big difference between the two. To keep the connection open, you need constant connection with the radio hardware, keeping it running, having it actively reconnect etc. Push notifications don't need a continous connection, the provider just connects from time to time and delivers the notifications then. There's some latency involved, but the power consumption is orders of magnitude lower.