[PR #6656] [MERGED] [PM-33506] feat: Add PremiumStatusChanged push notification support #59510

Closed
opened 2026-05-11 05:40:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/6656
Author: @SaintPatrck
Created: 3/12/2026
Status: Merged
Merged: 3/13/2026
Merged by: @SaintPatrck

Base: mainHead: premium-upgrade/PM-33506-premium-status-changed-push


📝 Commits (2)

  • a182586 PM-33137 feat: Add PremiumStatusChanged push notification support
  • d9e5db8 Rename premium field to isPremium and fix formatting

📊 Changes

6 files changed (+117 additions, -1 deletions)

View changed files

📝 app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/PushManager.kt (+6 -0)
📝 app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/PushManagerImpl.kt (+25 -0)
📝 app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/model/NotificationPayload.kt (+10 -1)
📝 app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/model/NotificationType.kt (+3 -0)
app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/model/PremiumStatusChangedData.kt (+12 -0)
📝 app/src/test/kotlin/com/x8bit/bitwarden/data/platform/manager/PushManagerTest.kt (+61 -0)

📄 Description

🎟️ Tracking

PM-33506
Parent: PM-33137
Server dependency: PM-32477

📔 Objective

Add support for PremiumStatusChanged push notification (type 27). When the server sends this notification after a successful Stripe payment, the client triggers a full sync to update premium status.

  • Add PREMIUM_STATUS_CHANGED(27) to NotificationType
  • Add PremiumStatusChangedNotification payload model (userId, premium)
  • Dispatch in PushManagerImpl → trigger syncManager.fullSync()
  • Expose premiumStatusChangedFlow on PushManager for downstream consumers

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/6656 **Author:** [@SaintPatrck](https://github.com/SaintPatrck) **Created:** 3/12/2026 **Status:** ✅ Merged **Merged:** 3/13/2026 **Merged by:** [@SaintPatrck](https://github.com/SaintPatrck) **Base:** `main` ← **Head:** `premium-upgrade/PM-33506-premium-status-changed-push` --- ### 📝 Commits (2) - [`a182586`](https://github.com/bitwarden/android/commit/a1825860841cd1763b1778b88adc94ca1cf3dcbe) [PM-33137] feat: Add PremiumStatusChanged push notification support - [`d9e5db8`](https://github.com/bitwarden/android/commit/d9e5db89ede08e3cbf2ff7bb68a56eeaa9632cd7) Rename premium field to isPremium and fix formatting ### 📊 Changes **6 files changed** (+117 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/PushManager.kt` (+6 -0) 📝 `app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/PushManagerImpl.kt` (+25 -0) 📝 `app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/model/NotificationPayload.kt` (+10 -1) 📝 `app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/model/NotificationType.kt` (+3 -0) ➕ `app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/model/PremiumStatusChangedData.kt` (+12 -0) 📝 `app/src/test/kotlin/com/x8bit/bitwarden/data/platform/manager/PushManagerTest.kt` (+61 -0) </details> ### 📄 Description ## 🎟️ Tracking [PM-33506](https://bitwarden.atlassian.net/browse/PM-33506) Parent: [PM-33137](https://bitwarden.atlassian.net/browse/PM-33137) Server dependency: [PM-32477](https://bitwarden.atlassian.net/browse/PM-32477) ## 📔 Objective Add support for `PremiumStatusChanged` push notification (type 27). When the server sends this notification after a successful Stripe payment, the client triggers a full sync to update premium status. - Add `PREMIUM_STATUS_CHANGED(27)` to `NotificationType` - Add `PremiumStatusChangedNotification` payload model (`userId`, `premium`) - Dispatch in `PushManagerImpl` → trigger `syncManager.fullSync()` - Expose `premiumStatusChangedFlow` on `PushManager` for downstream consumers [PM-33506]: https://bitwarden.atlassian.net/browse/PM-33506?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [PM-33137]: https://bitwarden.atlassian.net/browse/PM-33137?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [PM-32477]: https://bitwarden.atlassian.net/browse/PM-32477?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-11 05:40:20 -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#59510