Skip to content

feat: track push permission denials#253

Open
raulriera wants to merge 1 commit intomainfrom
feat/push-permission-analytics
Open

feat: track push permission denials#253
raulriera wants to merge 1 commit intomainfrom
feat/push-permission-analytics

Conversation

@raulriera
Copy link
Copy Markdown
Collaborator

Summary

Adds analytics for users disabling push notifications via Settings. Hooks into the existing on-foreground permission refresh, diffs against a persisted last-known status, and emits a Push Permission Denied event with the previous state attached when the user transitions into denied. Silent on first observation per install so existing users whose push is already off do not fire spurious events when this update ships. Read-only — no permission prompt is ever triggered.

Test plan

  • Cold launch on a fresh install does not emit any analytics event.
  • Disable push in Settings, return to the app, and confirm one denial event fires with the previous state.
  • Re-enable push in Settings and return — no event fires.
  • Background and foreground the app without changing push settings — no event fires.

Hooks into the existing on-foreground permission refresh, diffs against a
persisted last-known status, and emits a Push Permission Denied event when
the user transitions into denied. Silent on first observation per install
so existing users whose push is already off do not fire spurious events
when this update ships.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant