feat(mobile/android): end-to-end push notifications — FCM registration, POST_NOTIFICATIONS, and banner display
Motivation
Buzz on Android never shows an OS notification. A member who backgrounds the app learns about a DM or an @mention only when they reopen it. #4402 reports the same gap from the user side: the app stops receiving messages in the background and needs a restart.
The iOS half is already in flight — PR #1924 adds .alert/.badge/.sound authorization, registerForRemoteNotifications(), and a NotificationService extension. Android has no equivalent, and no client-side Android issue is filed for it.
Confirmed by reading main on 2026-08-17:
mobile/pubspec.yaml— nofirebase_messagingand noflutter_local_notifications. Android has no push path and no local-notification path.mobile/android/app/src/main/AndroidManifest.xml— noPOST_NOTIFICATIONSpermission (required since Android 13), no FCM service, no receiver.- Nothing under
mobile/libcreates akind:30350push lease. crates/buzz-push-gateway/src/shipsapns.rswith no FCM transport. That server half is #3229.
Proposed solution
Android client work, sized to land after #3229:
- Add an FCM dependency and register the device token at startup.
- Publish a NIP-PL
kind:30350push lease per installation, mirroring the iOS path in PR #1924. - Declare
POST_NOTIFICATIONSin the manifest and request it at runtime on Android 13+. - Create a notification channel and display a banner on wake for DMs, @mentions, and thread replies the user is in — matching the slot rules already used by desktop in
desktop/src/features/notifications/. - NIP-PL carries a wake signal only, so banner text must come from the events fetched after reconnect, never from the push payload.
Alternatives considered
- UnifiedPush instead of FCM. NIP-PL names it as an optional profile. It removes the Google dependency and suits self-hosted relays (#5206), but it requires the user to install a distributor app, so it is a poor default.
- A foreground service holding the WebSocket open. No Google dependency, but Android kills it under memory pressure, it drains battery, and it forces a permanent status-bar notification.
- Local notifications only, no push. The app would show banners while it runs and nothing while backgrounded. That is half the value, but it is a smaller first step and it does not depend on #3229.
Additional context
Closest existing issue: #4657 — "Mobile client never registers for push". It covers the transport gap for both platforms. This issue is the Android client half plus the display layer, which #4657 does not specify.
Related:
- #3229 — Android FCM transport profile in the push gateway (server half; blocks steps 1 and 2).
- PR #1924 — NIP-PL iOS push foundation. The Android work should mirror its
push_bridge.dart/push_models.dartstructure. - #4402 — Android: app stops receiving new messages in the background (the user-visible symptom).
- #5206 — self-hosted relays cannot reach the default APNs gateway; the same constraint will apply to FCM.
- Spec:
docs/nips/NIP-PL.md(status: draft).
Adding concrete demand from a self-hosted operator: Android push support in the official Buzz application is blocking our mobile rollout.
We use the official Android application published by Buzz against a self-hosted relay. Messaging works, but the application does not receive OS push notifications.
We are specifically requesting support in the official Play Store application, not a custom Android build.
Could the maintainers confirm:
- Whether Android push will use FCM through the NIP-PL architecture.
- Whether official Android applications will support arbitrary self-hosted relays.
- Whether there is a planned implementation, milestone, or pull request.
- What server and relay configuration self-hosters will need.
We can beta-test the implementation on physical Android devices and provide sanitized relay and gateway diagnostics.
Related self-hosted push request: https://github.com/block/buzz/issues/5206
Honestly pretty wild to have a chat style app that doesn't have notifications from day 1
Adding a guest use case. We invite non-technical clients into a hosted community, where agents reply to their requests and an owner reviews changes. On Android (0.20.0) they get no notifications at all: Settings > Notifications is iOS-only (settings_page/notifications_section.dart:8-10). So a guest only learns about a reply by opening the app. We work around it by having an agent text them.
Even before full push lands, an Android line in Settings saying "Notifications aren't available on Android yet" would set expectations (related: #7824).
Production report: our Android app shows push notifications as "unavailable in this build", and the iPhone app shows the same. Staff get no DM or @mention alerts unless the app is open. Tracking our combined rollout blockers in #8366.
self-hosted user. would really love to get mobile notifications, it's a blocker for using Buzz long term.