Skip to content

Push: device-token lifecycle (POST /api/push/register / DELETE /api/push/unregister) #46

Description

@Adron

Part of #44 — Push notifications: real device push (FCM) to replace the WorkManager poll

  • Register the FCM token on first grant and on every token rotation.
  • Unregister on sign-out and on account deletion — a stale token means notifications for one
    account land on a device someone else is now signed in on.
  • Request POST_NOTIFICATIONS at a moment that earns the grant rather than on cold start, and
    keep the app fully functional when it is denied.
  • Reuse the existing session/auth lifecycle hooks in :feature:auth rather than adding a new
    one.

Tests: register on new token; unregister on sign-out; denied-permission path.


Filed from the parity review of feature/parity-wip @ 14d7795 against interlinedlist.com (OpenAPI /api/openapi.json, 233 paths) and the public help centre.

Activity

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

    P1Big hole in a shipped featurearea:notificationsNotifications & pushparityClosing a gap against interlinedlist.com

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions