[PR #6664] [PM-33356] feat: Sync when push notification policy changed is received #12908

Closed
opened 2026-04-11 03:53:19 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/bitwarden/android/pull/6664

State: closed
Merged: Yes


🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-33356

📔 Objective

This pull request adds support for handling a new type of push notification indicating that an organization policy has changed. The implementation ensures that when a "policy changed" notification is received, a full sync is triggered for the active user. Corresponding tests have been added to verify this behavior.

Push notification handling:

  • Added a new notification type, POLICY_CHANGED, to the NotificationType enum to represent policy change events.
  • Updated PushManagerImpl to emit the active user ID to the fullSyncSharedFlow when a POLICY_CHANGED notification is received, triggering a full sync.
**Original Pull Request:** https://github.com/bitwarden/android/pull/6664 **State:** closed **Merged:** Yes --- ## 🎟️ Tracking <!-- Paste the link to the Jira or GitHub issue or otherwise describe / point to where this change is coming from. --> https://bitwarden.atlassian.net/browse/PM-33356 ## 📔 Objective <!-- Describe what the purpose of this PR is, for example what bug you're fixing or new feature you're adding. --> This pull request adds support for handling a new type of push notification indicating that an organization policy has changed. The implementation ensures that when a "policy changed" notification is received, a full sync is triggered for the active user. Corresponding tests have been added to verify this behavior. **Push notification handling:** * Added a new notification type, `POLICY_CHANGED`, to the `NotificationType` enum to represent policy change events. * Updated `PushManagerImpl` to emit the active user ID to the `fullSyncSharedFlow` when a `POLICY_CHANGED` notification is received, triggering a full sync.
GiteaMirror added the pull-request label 2026-04-11 03:53:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#12908