woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
325 stars 114 forks source link

Orders Badge does not sync on iOS when HPOS is enabled #12468

Closed rossanafmenezes closed 7 months ago

rossanafmenezes commented 7 months ago

Describe the bug

The badge showing how many processing orders the store has in the Orders tab does not sync if the store has HPOS enabled. I also did not get any notification for my test orders, while one of the users who reported the issue mentioned they get duplicate notifications if they enabled the compatibility mode.

To Reproduce

  1. Open a store that has orders in the Processing Status
  2. Enable HPOS if not enabled
  3. notice the badge showing new processing orders does not match the actual number of orders under the Processing status
Screenshots HPOS Enabled Android iOS

iOS HPOS Disabled

No notification on iOS, adding notification settings Android iOS (no notifs)

Expected behavior I would expect the badge to match the processing status order like it does on Android and to receive notifications

User Report: zd-8013603

(Asking the user for their env info. The info below is my setup) Mobile Environment Please include:

Update User iOS is also 17.4.1

During my tests, I disabled HPOS and enabled again, and once it was re-enabled the badge is completely gone, even tho I still have 42 orders under Processing status. Android still shows the correct badge

context: p1712749492322869-slack-C6H8C3G23

WordPress Environment

``` ` ### WordPress Environment ### WordPress address (URL): https://testwoomobile.wpcomstaging.com Site address (URL): https://testwoomobile.wpcomstaging.com WC Version: 8.7.0 REST API Version: ✔ 8.7.0 Action Scheduler Version: ✔ 3.7.2 Log Directory Writable: ✔ WP Version: 6.5.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: ✔ WP Cron: ✔ Language: en_US External object cache: ✔ ### Server Environment ### Server Info: nginx PHP Version: 8.1.27 PHP Post Max Size: 2 GB PHP Time Limit: 1200 PHP Max Input Vars: 6144 cURL Version: 8.4.0 OpenSSL/1.1.1w SUHOSIN Installed: – MySQL Version: 10.4.26-MariaDB-log Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 8.7.0 WC Database Prefix: wp_ Total Database Size: 29.82MB Database Data Size: 20.05MB Database Index Size: 9.77MB wp_woocommerce_sessions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.39MB + Index: 0.44MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.22MB + Index: 0.20MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.16MB + Index: 0.13MB + Engine InnoDB wp_afwc_campaigns: Data: 0.03MB + Index: 0.00MB + Engine InnoDB wp_afwc_commission_plans: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_afwc_hits: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_afwc_payouts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_afwc_payout_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_afwc_referrals: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.22MB + Index: 0.09MB + Engine InnoDB wp_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gla_budget_recommendations: Data: 0.19MB + Index: 0.14MB + Engine InnoDB wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_automations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_automation_runs: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_mailpoet_automation_run_logs: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_mailpoet_automation_run_subjects: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_automation_triggers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_automation_versions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletters: Data: 0.08MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_scheduled_tasks: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_scheduled_task_subscribers: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.23MB + Engine InnoDB wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 2.08MB + Index: 1.03MB + Engine InnoDB wp_postmeta: Data: 3.52MB + Index: 2.91MB + Engine InnoDB wp_posts: Data: 2.47MB + Index: 0.28MB + Engine InnoDB wp_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.09MB + Index: 0.11MB + Engine InnoDB wp_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_term_relationships: Data: 0.14MB + Index: 0.09MB + Engine InnoDB wp_term_taxonomy: Data: 0.08MB + Index: 0.11MB + Engine InnoDB wp_usermeta: Data: 0.13MB + Index: 0.14MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_wc_bookings_availability: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_bookings_availabilitymeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_booking_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_orders: Data: 0.09MB + Index: 0.13MB + Engine InnoDB wp_wc_orders_meta: Data: 0.25MB + Index: 0.58MB + Engine InnoDB wp_wc_order_addresses: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_wc_order_bundle_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_operational_data: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.13MB + Index: 0.16MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gc_activity: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gc_cards: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gc_cardsmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_prl_deploymentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_prl_deployments: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_prl_frequencies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_prl_generator_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_prl_tracking_conversions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_table_rates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woo_shippment_provider: Data: 0.14MB + Index: 0.00MB + Engine InnoDB wp_wpml_mails: Data: 4.52MB + Index: 0.02MB + Engine InnoDB ### Post Type Counts ### attachment: 214 customize_changeset: 3 jetpack_migration: 2 jp_img_sitemap: 6 jp_sitemap: 6 jp_sitemap_master: 6 mailpoet_page: 1 nav_menu_item: 10 page: 15 post: 3 product: 214 product_variation: 670 revision: 20 shop_coupon: 2 shop_order: 289 shop_order_refund: 16 shop_subscription: 4 wc_membership_plan: 1 wc_user_membership: 3 wp_global_styles: 2 wp_navigation: 2 wp_template: 3 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (15) ### Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.2 WordPress.com Editing Toolkit: by Automattic – 4.17250 Gutenberg: by Gutenberg Team – 18.0.0 Jetpack: by Automattic – 13.4-a.1 Layout Grid: by Automattic – 1.8.4 Page Optimize: by Automattic – 0.5.5 WooCommerce Stripe Gateway: by WooCommerce – 8.1.1 WooCommerce Payments Dev Tools: by Automattic – WooPayments: by Automattic – 7.4.0 Woo Product Add-ons: by Woo – 6.8.2 WooCommerce Stripe Dev Tools: by – WooCommerce Table Rate Shipping: by WooCommerce – 3.1.8 WooCommerce: by Automattic – 8.7.0 WP Mail Logging: by WP Mail Logging Team – 1.12.0 WP Rollback: by WP Rollback – 2.0.6 ### Inactive Plugins (18) ### Advanced Shipment Tracking for WooCommerce: by zorem – 3.6.5 Advanced Shipment Tracking Pro: by zorem – 4.3 (update to version 4.4.1 is available) Affiliate For WooCommerce: by StoreApps – 7.3.0 (update to version 7.11.0 is available) Code Snippets: by Code Snippets Pro – 3.6.4 Crowdsignal Forms: by Automattic – 1.7.0 Crowdsignal Polls & Ratings: by Automattic Inc. – 3.1.1 MailPoet: by MailPoet – 4.48.2 MailPoet Premium: by MailPoet – 4.42.0 WooCommerce Bookings: by WooCommerce – 2.1.0 (update to version 2.1.1 is available) WooCommerce Memberships: by SkyVerge – 1.26.2 (update to version 1.26.5 is available) WooCommerce Product Recommendations: by WooCommerce – 3.0.4 (update to version 3.0.8 is available) WooCommerce Shipment Tracking: by WooCommerce – 2.4.6 (update to version 2.4.7 is available) WooCommerce Smooth Generator: by Automattic – 1.1.0 WooCommerce Square: by WooCommerce – 4.6.0 WooCommerce UPS Shipping: by WooCommerce – 3.5.7 (update to version 3.5.9 is available) Woo Gift Cards: by Woo – 1.16.10 (update to version 1.16.12 is available) Woo Product Bundles: by Woo – 6.22.6 (update to version 7.1.0 is available) Woo Subscriptions: by WooCommerce – 5.9.1 (update to version 6.1.0 is available) ### Dropin Plugins () ### advanced-cache.php: advanced-cache.php object-cache.php: Memcached ### Must Use Plugins (1) ### WP.com Site Helper: by – ### Settings ### API Enabled: – Force SSL: ✔ Currency: USD ($) Currency Position: left Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: booking (booking) bundle (bundle) external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to Woo.com: ✔ Enforce Approved Product Download Directories: ✔ HPOS feature screen enabled: ✔ HPOS feature enabled: ✔ Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 5 MB ### WC Pages ### Shop base: #7 - / Cart: #8 - /cart/ Checkout: #9 - /checkout/ My account: #10 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Homestore Version: 2.0.34 Author URL: https://woocommerce.com Child Theme: ✔ Parent Theme Name: Storefront Parent Theme Version: 4.5.4 Parent Theme Author URL: https://woo.com/ WooCommerce Support: ✔ ### Templates ### Overrides: homestore/woocommerce/single-product/title.php ### WooPayments ### Version: 7.4.0 Connected to WPCOM: Yes WPCOM Blog ID: 221646855 Account ID: acct_1NXoNAC6ZmPjnrIw Payment Gateway: Enabled Test Mode: Enabled Enabled APMs: card,ideal WooPay: Enabled (product,cart,checkout) WooPay Incompatible Extensions: Yes Apple Pay / Google Pay: Enabled (product,cart,checkout) Fraud Protection Level: basic Multi-currency: Enabled Public Key Encryption: Disabled Auth and Capture: Enabled Documents: Disabled Logging: Enabled ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-variation-management product-virtual-downloadable product-external-affiliate product-grouped product-linked remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: customize-store minified-js new-product-management-experience product-pre-publish-modal settings async-product-editor-category-field Daily Cron: ✔ Next scheduled: 2024-04-10 16:24:58 -04:00 Options: ✔ Notes: 107 Onboarding: completed ### Action Scheduler ### Canceled: 14 Oldest: 2024-03-22 08:09:39 -0400 Newest: 2024-04-10 07:33:14 -0400 Complete: 554 Oldest: 2024-03-11 14:13:46 -0400 Newest: 2024-04-10 09:08:30 -0400 Failed: 7 Oldest: 2023-07-25 12:35:35 -0400 Newest: 2024-04-02 10:36:26 -0400 Pending: 4 Oldest: 2024-04-11 08:42:11 -0400 Newest: 2024-05-07 10:59:56 -0400 ### Status report information ### Generated at: 2024-04-10 09:15:33 -04:00 ` ```
dangermattic commented 7 months ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.