Skip to content

fix: show notification permission rationale in release builds#93

Open
sanasol wants to merge 1 commit intostoatchat:devfrom
sanasol:fix/fcm-push-registration
Open

fix: show notification permission rationale in release builds#93
sanasol wants to merge 1 commit intostoatchat:devfrom
sanasol:fix/fcm-push-registration

Conversation

@sanasol
Copy link

@sanasol sanasol commented Mar 4, 2026

The notification permission prompt was gated behind BuildConfig.DEBUG, so release users were never asked for notification permissions.

  • Show rationale in all builds, not just debug
  • Auto-register FCM token when permissions are already granted
  • Check Google Play Services availability before FCM registration
  • Add try-catch around subscribePush to prevent silent failures

The notification permission prompt was gated behind BuildConfig.DEBUG,
so release users were never prompted. Also adds:
- Auto-register FCM token when permissions are already granted
- Google Play Services availability check before FCM registration
- Error handling around subscribePush

Signed-off-by: sanasol <[email protected]>
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