Skip to content

Mobile pushes fail when registered devices use different Expo projects #7578

Description

@gsxdsm

Summary

Registering phones from different Expo projects stops mobile notifications for every device in the batch. The server sends their tokens together and Expo rejects the whole request with PUSH_TOO_MANY_EXPERIENCE_IDS.

Versions and environment

  • bb desktop 0.49.0 on macOS 26.7.1.
  • Android: Samsung SM-F971U1, bb mobile 0.49.1-nightly.43617789591.1; another registered device is an iPhone.
  • The two tokens belong to different Expo experiences: a development build and a production build.
  • Source inspected at 88cf8f6. Provider-independent.

Steps to reproduce

  1. Register mobile notifications with the same BB server from two app builds associated with different Expo projects.
  2. Run bb push-notifications list --json and confirm both devices are registered.
  3. Run bb push-notifications send --title 'Notification test' --json.
  4. Run bb push-notifications status --json.

Expected vs actual

Expected: Expo accepts a notification for each registered device, even if their builds use different Expo projects.

Actual send output:

{"ok":true,"channels":["web","desktop"]}

The status reports "lastSendOutcome":{"status":"failed","reason":"relay rejected the request"} (timestamp omitted).

The relevant plugin log message is:

Expo push request was rejected with codes PUSH_TOO_MANY_EXPERIENCE_IDS

Evidence

The sender batches every subscription together, limited only by request size: https://github.com/get-bb/bb/blob/88cf8f644c/plugins/push-notifications/sender.ts#L464-L483

Expo documents the request error and its token-to-experience mapping: https://docs.expo.dev/push-notifications/sending-notifications/#request-errors

An Android-only push using the same registered token returned an accepted ticket and a successful receipt. Android's notification manager recorded the test title under app.getbb.mobile, channel threads.

What was ruled out

  • Android notification permission was granted and the Threads channel was enabled at maximum importance.
  • The same Android token received a standalone test successfully.
  • Mobile notifications were enabled on the server.
  • Searches of open and closed issues for the exact error, mixed Expo projects, and Expo push notifications found no duplicate.

AGENT GENERATED

Activity

  1. added theissue type on Nov 15, 2026
  2. added
    remote
    confirmed-repro
    on Nov 15, 2026
  3. bb-slop-cop commented on Nov 15, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Low · area: remote.
    • Report: https://get-bb.github.io/reports/issues/7578.html — REPRODUCED, high root-cause confidence; reproduction label: confirmed-repro.
    • Root cause: size-only batching mixes device projects; a request-level rejection terminates delivery to every device in that batch.
    • Evidence: the real plugin regression fails on unchanged trusted main in two clean checkouts. The relay is simulated; physical-device delivery remains unverified.
    • Fix: Retry rejected push batches with bounded subdivision #7580 — bounded splitting of rejected batches; 151 changed lines across two files. All 67 plugin tests, lint, typecheck, and diff checks pass. PR is ready and not merged.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproremote

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions