Repository navigation
Description
Parent: #1655 (mobile hub #1643). Follow-up from #2040; related to #1931, #1936 and #1937.
Observable outcome
A configured Android build pairs with an isolated Host, enables notifications, receives the existing test push through Host → Expo Push Service → FCM v1 → Android, and tapping the system notification opens Activity. Then qualify the existing approval/reply routing and actions on a physical device. This is native configuration and delivery QA, separate from #2040's drawer navigation.
Current gap
At 57f4335, apps/mobile/app.json enables expo-notifications but defines neither extra.eas.projectId nor android.googleServicesFile. The native adapter reads the project ID from Expo/EAS Constants and throws missing-project-id if neither exists. The QA build showed the unavailable state; its effective compiled configuration still needs to be inspected before assigning an exact failure cause.
The Host already owns registration, preferences, test sends, receipts and revocation; the phone already has notification channels, permission handling and tap/action routing. Reuse those seams. No new push provider or parallel notification authority is needed. The preceding PR verified only navigation, not remote delivery.
Configuration and Human prerequisites
- Confirm the intended Expo/EAS and Firebase projects and their ownership. Register the exact development Android package,
ai.botharness.deepseekbot.dev, in Firebase. - Supply the matching client
google-services.jsonto the build and configure its path; provide the EAS project ID through the agreed app configuration. - Configure the matching FCM v1 service-account credential in EAS. This is a private server credential, distinct from the client JSON; never put it in source, app assets or QA logs.
- Rebuild and reinstall the Android development client after native configuration changes. Metro/OTA cannot add this native configuration. A local Windows build is sufficient; a cloud build is optional.
- Use a GMS-compatible physical Android device with FCM network access. SDK57 also allows compatible Google-API/Play-enabled emulator testing, but emulator results do not replace physical-device acceptance. Record OEM/background restrictions separately; non-GMS transport is outside this slice.
Account selection and credential authorization require the Human; implementation and queued device QA remain agent work once those inputs exist. Follow the shared Windows Android queue and use isolated QA data, not production recipients.
Tracer and acceptance
- First working slice: record source/native build identity, pair the rebuilt app, create the
requestschannel before requesting Android13+ notification permission, and enable notifications. Verify the Host's canonical per-device registration without printing the token. Send the existing test notification from Settings, observe it in the system UI, tap it and verify Activity opens. Retain this working slice for Human feedback before extending the matrix. - Existing product behavior: create task-owned approvals/replies; cover foreground, background, locked screen and ordinary process-terminated cold launch. Expand notification actions and verify Allow once/Reject (and Always allow where eligible), unlock/open behavior, canonical decision exactly once, cross-Host routing, resolved-elsewhere dismissal, supported badge behavior, per-kind preferences and device revocation. Preserve ADR-0213's current preview rules and private-input redaction; older issue prose is not a reason to change payload semantics.
- Failures and lifecycle: denied permission → system-settings recovery; disabled channel; token/registration failure; inaccessible Host; invalid token cleanup. Treat Android Force stop separately from background/process death: reopen the app before expecting further delivery. Recheck essential cold-launch behavior in a release-mode/internal build; no store submission is needed.
- Evidence: correlate bounded Host send facts, Expo tickets/receipts, actual Android notification visibility, tap/action and canonical Host outcome. An HTTP success or receipt
okis not proof of display or interaction. Do not claim successful receipts are currently persisted as complete diagnostics without checking the implementation. Keep tokens, keys, unrelated notifications and IME clipboard suggestions out of published evidence. - Repeatable AX path: add the configured-build fingerprint/prerequisite checks and Android push journey to the shared QA/feature map. Local/ADB-posted notifications can test presentation but bypass Expo/FCM; iOS
simctl pushis not Android qualification. Provide a model-independent agent path through the existing Host owners; verify CLI coverage instead of inventing commands, and ship matching CLI commands/tests/docs for any added or changed Host route per AGENTS.md. Keep the first remote test and canonical registration observable without a model call.
Done means the physical Android first slice and agreed behavior matrix have explicit pass/fail/untested records, recoverable setup instructions, redacted native evidence and matching public-interface regression coverage. Telemetry work remains in #1936/#1937; SDK upgrades and alternative transports remain separate.
Activity
DoodleBears commentedon Nov 9, 2026
Android FCM physical-device increment — 2026-11-09
Correction to this Android closeout task's earlier “FCM unconfigured” reports: existing Firebase client configuration and FCM V1 credentials were already present. The Human has now completed checks of development and store EAS bindings against the intended Firebase project; no new project/key was required.
PASS, bounded development-app background delivery/display:
sent / outcome=ok(ageMs=521).Candidate: retained clean arm64 R8 mobile source
1495b909b2ca11a59f55e65d94a96e444f36d53d, previously verified installed APK SHA2561114c8736ae2ff2dcffc3547bf1015ba75b51270cf7871af820598d00ee16005; package update timestamp unchanged in this run. Dedicated Host retains its separately recorded older runtime. Physical POCO / Android 16. No microphone use, no data reset, no changes to other tasks' services.Not covered by this increment: store-package runtime delivery; test-notification-to-Activity tap; cloud approval actions; ordinary process-death/cold-launch delivery; controlled local-first/cloud-first/late/resolved races; long idle/energy or sound under DND. The Host facts are Expo send-ticket acknowledgements, not independently captured FCM/provider receipt records. Prior native logic tests do not substitute for those device cases.
Private evidence retained locally in
android-closeout/fcm-live-result-1109.md,fcm-live-send.json,fcm-live-logs.json,fcm-live-notifications.json, anddevice/fcm-live-shade.png. The shade contains unrelated personal notifications and is intentionally not published. This result does not close the broader acceptance matrix or promote every N1–N6 criterion to PASS.DoodleBears commentedon Nov 9, 2026
Installed Store Android app: real background FCM delivery
Bounded PASS on the existing app.deepseekbot.mobile version1.5.3/versionCode14 (last installed2026-11-02), not a rebuilt latest-source Store candidate. Its exact Git source was not established. The development R8 candidate remains b415709. Existing main QA Host provenance remains qualified separately.
No update, uninstall, app-data clear, real credential submission or microphone operation. Store microphone permission was false and UID mode ignore. Existing Store App had one offline original computer; retained throughout. Created only one temporary QA pairing through its normal native invitation path. Compared the full Host fingerprint with devices.lanBots.host and the full phone fingerprint with the exact invitation's pending public key before approval. Redeemed device2iuTARYMW2vmaiRIzD4XkA; normal push_devices registration had platform Android and a nonempty token (value never printed).
Native notification settings showed allowed and all four categories enabled. Backgrounded to launcher. Normal bot_send_message produced canonical message bot-82efe8a79d5021d0ebc3a138a8fdf2806409ce90824a5278d7bd8f8c0cb93999 and marker FCM-RACE-store-runtime-1109-1794214887888. Host logged that exact Store device reply push sent/outcomeok at09:01:29.560Z. At09:01:33.392Z Android had exactly one matching app.deepseekbot.mobile cloud-tagged notification. Stable private PNG inspected shows the marker. Both packages received one: package-scoped complete notification records count Store1/dev1. The two visible copies are distinct installed apps, not single-app duplication.
Cleanup: exact newly created device revoked09:02:31.552Z, push registration count0. Native unpaired only BEAR-PC QA; original Store computer remains in drawer. All prior Host devices retained unchanged revokedAt. Local link server session30107 ended and added reverse8123 removed. No other Host, pairing or credential reset.
Evidence: store-runtime-preflight.json, device/store-hosts.xml, store-host-before-pair.json, store-key-pending.json, device/store-key-visible.xml, device/store-notification-state.xml, race-store-runtime-1109.json, store-runtime-observed.json, store-runtime-package-counts.json, private device/store-runtime-shade.png, store-runtime-cleanup.json, device/store-final-hosts.xml.
Boundaries: ordinary background display only; no Store approval/cold-route/full-lifecycle or acoustic/long-idle claim. Provider send acknowledgement is not a separately collected provider receipt, but handset display is independently observed. Old Store runtime emitted repeated registration/preferences logs and showed socket error after revocation; these observations do not establish a current-source defect. Initial drawer overlay hid the pairing sheet; Back exposed it before the valid confirmation. Full images and network/device details stay private.