safe-wallet-web icon indicating copy to clipboard operation
safe-wallet-web copied to clipboard

fix(mobile): notification badge was not cleared

Open compojoom opened this issue 2 weeks ago • 1 comments
trafficstars

What it solves

The notification badge was only cleared when the user would click on the push notification. If the user would open the app, by pressing the icon the badge won’t be cleared.

Resolves https://linear.app/safe-global/issue/COR-797/notification-badge-not-cleared

How this PR fixes it

It clears the badge whenever the appState in the app changes to active

How to test it

Receive a push notification. Note the badge on the icon increasing. Dismiss the push notification. Open the app by pressing the app icon. Close the app. Now the badge should be gone.

Screenshots

Checklist

  • [ ] I've tested the branch on mobile 📱
  • [ ] I've documented how it affects the analytics (if at all) 📊
  • [ ] I've written a unit/e2e test for it (if applicable) 🧑‍💻

CLA signature

With the submission of this Pull Request, I confirm that I have read and agree to the terms of the Contributor License Agreement.

compojoom avatar Nov 03 '25 16:11 compojoom