Repository navigation
Description
The workflow
Sent from the self-hosted bb server we run for a few people, where the iOS app is the only surface those users have. Notifications are the one feature I cannot turn on for them: the payload carries the thread title and a preview of the agent's question or answer, and the privacy policy says so plainly — "push notifications are not end-to-end encrypted between your server and phone" (https://getbb.app/privacy). Turning notifications on therefore means sending my users' thread titles and agent prompts through Expo, Apple and Google. I want the same notification with none of that content in it.
What happens today
Verified against 35a03bbbb3f4d8dc814c1a152db5a463102b4250:
- The payload is content.
deliver()buildstitlefrom the thread title andbodyfrom the first paragraph of the agent's text (sender.ts#L460-L472,notification-text.ts). The only content-free message is the dismissal push (_contentAvailable: true, sender.ts#L500-L513). - No on-device decryption. There is no NotificationServiceExtension and no
mutable-contentin the tree, and the app readscontent.dataonly to route a tap (apps/mobile/src/notifications/PushNotificationsHost.tsx), so a push with no text would show nothing rather than fetch text on receipt. - The relay URL does not help.
expoPushUrl(label "Expo push relay URL", server.ts#L180-L186) changes where the request goes, but the device token is an Expo token (getExpoPushTokenAsync, expo-push-module.ts#L70-L73) and the request is unauthenticated, so the token can only be delivered by Expo and the payload still crosses Expo, APNs and FCM. The app module exposes nogetDevicePushTokenAsync, so a self-hosted relay or a direct APNs/FCM sender has no token to work with. - No setting strips content. The plugin defines exactly six settings (server.ts#L129-L186) and none of them touch the payload.
I searched issues and PRs for encrypted notifications, content-free notifications, self-hosted push, UnifiedPush, ntfy and Expo removal; the closest hits are #7578 (mixed Expo projects) and #5744/#7626 (self-hosted account origins), none of which is this.
What I am asking for
Either of these would be enough, and the first is small:
Option A — a content-free mode (small). A setting such as notificationContent: preview | none. With none, deliver() sends a fixed title and body ("bb", "A thread needs you") and keeps data (kind, projectId, threadId, serverUrl, subscriptionId) as it is, so tapping still opens the right thread and the read-receipt dismissal behaves exactly as today. Thread titles and prompts stop leaving the device, and the cost is one branch in deliver() plus one setting. This is a real privacy improvement even though Expo still sees that a notification happened.
Option B — a device-token path (larger). Let the app register a raw APNs/FCM token alongside the Expo token, and let a relay consume it, so an operator can run their own forwarder — or, with an iOS NotificationServiceExtension in the app, receive an encrypted payload and decrypt it locally. That is what content-free-plus-E2EE needs, and it is why UnifiedPush/ntfy keep coming up as the Android comparison. I would take A now and B whenever it fits.
Web Push for the PWA
The web side has the same problem and a cleaner route. Today web notifications only fire from an open page: the client builds new Notification() in the tab (client.ts#L91), suppressed while the thread is focused and visible (client.ts#L44-L56), and the setting says exactly that — "Show system notifications while bb is open in a browser" (server.ts#L137-L142).
Standard Web Push (RFC 8030 transport, RFC 8291 aes128gcm payload encryption, RFC 8292 VAPID) would let an installed Home-Screen web app receive notifications with the tab closed, and the payload is encrypted end to end between the bb server and the browser: the push service (Apple's, Google's, Mozilla's) sees only metadata — the endpoint, the timing and the size — and never the title, the prompt or the answer. iOS/iPadOS Safari has delivered Web Push to Home-Screen web apps since 16.4.
So the ask is whether bb would take a Web Push path for the PWA alongside a content-free mode for the native app, on whatever schedule suits. Two shapes work: a data-only push that the app answers by fetching the text over its existing authenticated channel, or a Notification Service Extension decrypting a payload. Web Push needs a subscription endpoint and VAPID keys in the server, which is more than Option A but nothing in it depends on Expo, APNs or FCM ever seeing content.
Notes
- Retry rejected push batches with bounded subdivision #7580 (bounded subdivision for rejected batches) is unmerged and would matter for anyone mixing app builds, but it is orthogonal to this ask.
- Nothing here needs to change for operators who are happy with previews; the setting is opt-in and defaults can stay as they are.
- Happy to write the patch for Option A as a PR if that is the shape you want — I know CONTRIBUTING needs approved-contributor status first, so tell me where to start.
Activity
bb-slop-cop commentedon Nov 22, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied Type: Feature, Priority: Medium, Effort: High, and labels
remote,mobile. All classifications were missing; no existing values were replaced.This requests new notification privacy and delivery capabilities, not unexpected behavior. Medium priority reflects the limited self-hosted use case and the workaround of disabling notifications; High effort covers the broader native-token and Web Push design, although a generic-message mode alone is smaller.
No reproduction report or pull request: this is a feature request requiring product/design decisions, outside the automatic bug-fix path.