Files
oott/TODO.md
T
rzuastiandClaude Opus 4.8 4f3fe10332 Implement push notifications Phase 1 (FCM + project relay)
Backend (Rust):
- push_tokens migration, model (PushToken/PushPlatform), and db layer
  (upsert/list/delete/delete_many)
- PUT/DELETE /api/push_tokens endpoints wired into the router + OpenAPI
- "push" notification method: relay sender (reqwest) that forwards only the
  sanitized title/body and prunes dead tokens, plus settings with a default
  relay_url
- 164 tests pass, clippy clean

Relay (push_relay/, TypeScript Firebase Cloud Function):
- POST /v1/push (firebase-admin sendEach + per-token status mapping),
  GET /healthz, payload validation, per-IP Firestore rate limiting
- Jest tests + README documenting the manual project-owned setup

Frontend (Flutter):
- oott_api_push.dart (register/unregister), push_service.dart behind a
  PushService abstraction, and a per-device push toggle in settings
- firebase_core/firebase_messaging/flutter_local_notifications deps
- 145 tests pass, dart analyze clean

Dev shell:
- add nodejs_22 to the Nix dev shell so the relay tests/build run locally

Remaining (manual, project-owned): create the Firebase project, deploy the
relay and set the real default_relay_url, add native Firebase config, and test
on real devices.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 12:28:03 -04:00

1.3 KiB

OOTT ToDo list

  • Add support for push notifications to the app (iOS and Android)

Release plan for 0.2.0

  • Test Android UI on emulator
  • Release 0.1.0
  • Fix bugs and release 0.1.1
  • Install in test server (docker) following documented process
  • Install test app on iPhone
  • Test in-house for 1 week
  • Implement push notifications
  • Release 0.2.0
  • Install in test server and test app on iPhone
  • Test in-house for 3 days
  • Release 0.2.1 (or as many versions as needed)
  • Publish website
  • Post on reddit

Backend

  • Implement the pushover API call directly to support HTML content and review notification text to use it
  • Check for potential dependency upgrades

Frontend

  • In the status screen, the "listening for" property of passive scanners should change to days and months (now its always minutes)
  • Check for potential dependency upgrades
  • In settings, figure out automatic save

Push relay

  • Add NPM to the devShell to be able to run tests

Improve engine

Passive (low noise, no probing):

  • Passive packet capture — observe any broadcast/multicast traffic; a device that never responds to ARP still generates traffic

Active (you probe the network):

  • NDP (Neighbor Discovery Protocol) — IPv6 equivalent of ARP; important if the network uses IPv6