Data Layer low complexity Shared Component mobile
0
Dependencies
1
Dependents
4
Entities
0
Integrations

Description

Data component responsible for managing FCM and APNs push token persistence. Handles token registration on app start, token refresh events, and token deletion when a user disables push notifications. Ensures the server-side push_tokens table stays in sync so no push is attempted for opted-out users.

Feature: Notification Settings

push-token-store

Responsibilities

  • Store and retrieve the current device push token locally and on the server
  • Handle FCM/APNs token refresh events and update the server record
  • Delete the push token from the server when the user disables push notifications
  • Register a new push token when the user re-enables push notifications

Interfaces

registerToken(String userId, String token, String platform)
deleteToken(String userId, String deviceId)
refreshToken(String userId, String oldToken, String newToken)
getActiveToken(String userId, String deviceId)
hasActiveToken(String userId)

Relationships

Dependents (1)

Components that depend on this component