3 ms·
Why not just an SMTP extension. Send notifications via email, which expire after X seconds. No need to reinvent the mail
by seydor 3y ago
Why not just an SMTP extension. Send notifications via email, which expire after X seconds. No need to reinvent the mail
- rollcat 3y agoBecause such a protocol has to be designed with battery efficiency and mobile data usage in mind. Typical message should be no more than 1 byte. I like Pushover's protocol design: <https://pushover.net/api/client#websocket https://pushover.net/api/client#websocket>
- tinus_hn 3y agoThe interesting part is not in sending the messages but in receiving them. How are you going to fetch that email?
- mr_mitm 3y agoIMAP IDLE?
- tinus_hn 3y agoYes. And then as with that solution, in many cases it doesn’t work and you have to fall back to regular polling. If you remember to detect that the connection has dropped. And then the testing defeats the purpose because it wakes up the radios. So now you’ve packaged the problem in a new layer that doesn’t solve anything but creates new problems. The concept of an open connection waiting for the server to say anything is not novel or special, it just, as we already know, doesn’t really work reliably, you have to do more work to make it reliable.