Skip to content

Commit 86647c0

Browse files
pmusolinomokagio
authored andcommitted
Cherry-pick #5715 – Reset app badge count when visiting orders tab
The PR was originally merged on the `release/8.1` branch, but we need it in `release/8.1.1` in order to ship it as part of an hotfix build.
1 parent 5d9b197 commit 86647c0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [***] Now it's possible to filter Order List by multiple statuses and date ranges. Plus, we removed the top tab bar on Orders Tab. [https://github.com/woocommerce/woocommerce-ios/pull/5491]
1414
- [*] Login: Password AutoFill will suggest wordpress.com accounts. [https://github.com/woocommerce/woocommerce-ios/pull/5399]
1515
- [*] Store picker: after logging in with store address, the pre-selected store is now the currently selected store instead of the store from login flow. [https://github.com/woocommerce/woocommerce-ios/pull/5508]
16+
- [*] The application icon number from order push notifications is now cleared after visiting the orders tab. [https://github.com/woocommerce/woocommerce-ios/pull/5715]
1617
- [internal] Migrated Settings screen to MVVM [https://github.com/woocommerce/woocommerce-ios/pull/5393]
1718

1819

WooCommerce/Classes/ViewRelated/Orders/OrdersRootViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ final class OrdersRootViewController: UIViewController {
9292
}
9393

9494
override func viewWillAppear(_ animated: Bool) {
95+
super.viewWillAppear(animated)
96+
9597
// Needed in ViewWillAppear because this View Controller is never recreated.
9698
fetchExperimentalTogglesAndConfigureNavigationButtons()
99+
100+
ServiceLocator.pushNotesManager.resetBadgeCount(type: .storeOrder)
97101
}
98102

99103
override var shouldShowOfflineBanner: Bool {

0 commit comments

Comments
 (0)