logoalt Hacker News

satvikpendemyesterday at 4:01 PM3 repliesview on HN

Sure but it needs to go through Firebase regardless of the content of the notification message, I do not believe there is a way to use a third party notification service which does not depend on Firebase.


Replies

Zakyesterday at 7:06 PM

It doesn't. The API for displaying a notification is purely local.

Receiving a ping from Firebase Cloud Messaging triggers the app to whatever it does in order to display its notification. In the case of Signal, that probably means something like fetching the user's latest messages from the server, then deciding what to show in the notification based on the user's settings, metadata, and message content.

Here's example code for using FCM to show a notification. In this case, the notification content also passes through FCM, but Signal does not do that. https://www.geeksforgeeks.org/android/how-to-push-notificati...

show 1 reply
eptcykayesterday at 5:58 PM

When running Signal without google play services, Signal reliably received push notifications and with minimal battery drain.

show 1 reply
gertopyesterday at 5:44 PM

Any application can send notifications without going through a server.

show 1 reply