[BTAPI-74] Support disabling push notifications per device #89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/BTAPI-74"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket
BTAPI-74 Support disabling push notifications per device
Summary
notificationsEnabled?: booleanto theDevicemodel, distinct from the existingdisabled(stale-token) flag.DeviceService.upsert()only setsnotificationsEnabledwhen the caller explicitly provides it, so plain token-registration calls don't reset a user's opt-out.POST /deviceaccepts an optionalnotificationsEnabledflag to let the app set the toggle for its own token.Notifications.dispatchfilters opted-out devices out of the fan-out forsend/sendRevision.sendAlert(operational alerts: dead session, failing sync) is explicitly exempt via{ respectOptOut: false }and keeps reaching every registered device.server/lib/data/device,server/api/routes/device, andserver/lib/notifications; rootCLAUDE.mdupdated for the new field and route behavior.