Handling notifications badge number on IOS

I want to ask How to handle notifications badge number on IOS
I just only see the doc https://docs.expo.io/versions/latest/sdk/notifications/#app-icon-badge-number-ios

Add badge number to your push notificaiton object. This will automatically update your badge.
You can also set badge number in your app.

1 Like

Hey @tungntq,

As @fatihcelik has graciously answered your question and provided you with the necessary links, Iā€™m going to mark this as solved.

Also, in the future, it would be greatly appreciated if you would refrain from creating multiple topics for the same question or issue. It creates more noise on the forums and is harder for us to focus our support efforts.

Cheers,
Adam

1 Like

Yep
thank you so much

I have a question for you.
How can I control number badge when I Add badge number to your push notification object.
When I read notification in-app or I clear a notification badge number will change

You have to keep track of it on your server. For example, if the badge number changes on your device, you will need to notify your server so it can keep an accurate count of the current badge count.

2 Likes

Appreciate you helping out here, @moodyd. Thanks for taking the time to share an answer with the community.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.