Keychat's avatar
Keychat 5 months ago
Message notifications become more difficult when users are free to choose the relays.

Replies (2)

Keychat's avatar
Keychat 5 months ago
Because phone batteries are limited, the OS doesn’t require the app to keep running in the background. When the user isn’t actively using their phone, we have to rely on a notification server. The notification server watches the relays for the recipient’s address; if it detects a new message, it sends a system-level push through iOS APNs (Apple Push Notification service) or Android FCM (Firebase Cloud Messaging). The hard part is that, if users choose their own unique relays, the notification server would have to monitor a huge number of relays.