Mail iOS shows wrong unread count with Gmail “Primary” setting (iOS 26.4.2)
I’m experiencing an issue with the unread email badge count in the Mail app on iPhone when using a Gmail account.
In Settings → Notifications → Mail → Customize Notifications, I have selected “Unread messages in Primary”. However, the badge count on the Mail app icon does not match the number of unread emails in the “Primary” category. Instead, it shows a much larger number, as if it is counting all unread emails (similar to “All Mail”).
Important details:
- On the Mail app for Mac, using the same Gmail account, the unread badge works correctly and matches the “Primary” category.
- In Gmail (web), the categories (Primary, Promotions, Social, etc.) are correctly organized.
- In the iPhone Mail app, the “Primary” view itself is correct and only shows relevant emails.
- The issue is specifically with the badge count, which does not respect the “Primary” filter.
Troubleshooting steps already attempted:
- Removed and re-added the Gmail account on iPhone
- Restarted the iPhone
- Disabled and re-enabled Mail for the Gmail account
- Adjusted Gmail labels to only expose Inbox via IMAP
- Updated iOS to version 26.4.2
None of these steps resolved the issue.
This suggests that the Mail app on iOS is calculating the unread badge count based on the total number of unread messages provided by Gmail via IMAP, instead of applying the “Primary” category filter selected in settings.
Is anyone else experiencing this behavior?
Is this a known issue or bug in Mail on iOS when used with Gmail accounts?
iPhone 12, iOS 26