Open
Conversation
adrastaea
reviewed
Jan 30, 2026
| const _logger = baseLogger.extend(config.socket.id) | ||
| _logger.debug(`Initializing push notifications WS event handlers`) | ||
|
|
||
| async function handleSendPushNotifications( |
Collaborator
There was a problem hiding this comment.
I think it would be easier to port this into an independent server for p2p-only users if we implemented this as an https endpoint. We don't really need web socket features for this afaik. I recognize it's probably easier to just use the qss socket for now though since you can just copy the existing pattern though.
40d837e to
d1fb4d0
Compare
Collaborator
Author
|
@adrastaea this is now rewritten to offer QPS up as an HTTP API based on the rough spec in the Notion doc including the UCAN token generation. The Firebase Admin API code is hooked up, but I've been testing on a mock service that can be enabled in local dev environments, so still a bit more to be done there and to make sure the payloads for the |
e0fc9e3 to
dea4aea
Compare
QPS provides the ability to deliver push notifications to devices using Quiet, using the Firebase Cloud Messaging API to support both Android and iOS service. This adds an HTTP API with two endpoints: - `POST /v1/register` will register a device notification token and the server will respond back with a UCAN token to indicate. - `POST /v1/push` will send a single notification to a single device, based on the provided UCAN token. Includes a tool to test WebPush notification via Firebase. TODO: - Still finalize data structures for notification payload.
dea4aea to
815be0e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This supports both Android and iOS push services, and will allow for the forwarding of encrypted notifications from clients that the targets can decrypt in the background before displaying a more useful notification from the payload.
Closes #20
Closes TryQuiet/quiet#3086