Open
Description
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.
- Upon set of the
/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. - Add configuration option in domains.conf to allow the administrator to specify a notification server URL. Default to
https://notifications.delta.chat/notify
if not set. - Upon receipt of a new message, collect all of the tokens for that user from the database and enqueue requests to the configured URL with each notification in the body of the request. It should make one request per token. The requests should be retried via exponential backoff up to a deadline of 5 hours after enqueueing.
- Ensure notification tokens are deleted when an account is deleted.
(These two are not strictly notification related, but they require similar changes, so it would be reasonable to do them at the same time.)
- Add configuration option in domains.conf to allow the administrator to specify an Iroh relay server URL.
- Hook into reads of the
/shared/vendor/deltachat/irohrelay
key to return the configured Iroh relay server URL from the settings.
Metadata
Assignees
Labels
No labels
Activity