-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chatmail: Push Notifications #291
Comments
I think we'll have to implement push notifications according to the current chatmail approach as you described. At some point in the future, we can hopefully use a standardized push notification mechanism. Anyway, it will take time before a push mechanism is standardized and before it makes it into software, so we shouldn't wait for it. Just wanted to mention potential future approaches for context. |
If WebPush draft is implemented in the server and has tests, we can implement it in https://github.com/chatmail/core chatmail is hardcoded to use https://notifications.delta.chat server currently and there is no way to choose gateway, so I don't think it makes sense to implement it as is. I am not sure if WebPush results in less privacy as it definitely requires to store subscription gateway in plaintext on the mail server, but that's how it is, maybe could be solved by encoding some data into tokens cryptographically so tokens are indistinguishable between at least all delta chat clients by default. |
FYI, I started on an prototype for the IMAP WEBPUSH draft. It helped shape the draft, so that's useful. The prototype currently lives at https://www.ueber.net/who/mjl/tmp/mox.imapwebpush.git, but I'll move it elsewhere at some point. It's prototype-level code, needs to be refactored and cleaned up. And of course the draft spec will change. It is being discussed in the IETF mailmaint WG, but isn't adopted at this point. An IMAP server (eg mox) will store the following per push notification subscription for an account: The push server URL (e.g. https://notifications.delta.chat/..., as retrieved/created by the client, and I think client developers will have their own push servers, at least until the mobile platform providers expose a webpush server and let client developers register push subscriptions with them) and the client public key and auth secret (generated by the client, on its own) that is used for encrypting the message. |
Speaking about Delta Chat, it does not care about the push notification contents and is only interested in new messages arriving into INBOX. |
This is part of a series of issues tracking chatmail support in Mox.
Chatmail servers provide support for sending platform-native push notifications on iOS and Android.
/private/devicetoken\[email protected]
key (with a notification token), append that token to a table linking tokens to user accounts. Caution: all tokens set with this method should be preserved! This allows users to have multiple devices. The token should be treated as an opaque string with no meaning, which must be preserved exactly and sent exactly.https://notifications.delta.chat/notify
if not set.(These two are not strictly notification related, but they require similar changes, so it would be reasonable to do them at the same time.)
/shared/vendor/deltachat/irohrelay
key to return the configured Iroh relay server URL from the settings.The text was updated successfully, but these errors were encountered: