3 ms·
> You can leave a socket open in the background (although you do need a periodic keep alive but the period can be pretty long.) to receive push messages without
by ogre_codes 6y ago
> You can leave a socket open in the background (although you do need a periodic keep alive but the period can be pretty long.) to receive push messages without draining the battery (as long as the server doesn’t spam it.).
This only works on a platform where apps can run in the background indefinitely. Small memory, limited CPU, and battery life means apps have short life-spans on phones.
This is why there is a push notification service for mobile platforms.
- swiley 6y agoModern phones have as much memory as most people’s laptops. The reason apps have to have short lifetimes on people’s phones is because they’re encouraged to install untrusted software as native apps.