Is there a way to decrease iOS notification badge count on notification opened event?

Title says it all, I think.

1 Like

Far as I can tell there isn’t a way. I asked a similar question a month or so ago and didn’t get any responses. I found older posts from a few years back asking the same thing.

I found out how to do it with a firebase function. Have to create a badge count in database and when you send notification send dynamic badge count and when the notification is read decrease the badge count and send data notification to decrease it. Stupidest thing in the world

i tried a similar work around.

I came into the situation where if iphone user had the app in focus when firebase notification went out then the app wouldnt update the count.

I think it has to be a pure data message and you have to add some param you can parse and use an if statement.

1 Like