ios
ios copied to clipboard
Increase the IOS app badge number automatically by 1.
Hello there.
I have an issue with calculating the count of unread local and remote notifications.
I can not handle the unread notification badge number and calculate the next number. Some of the users' notifications are sent by our marketing panel (remote) and also users have their local notifications. And I need to handle both of these types and calculate the next number of the app icon badge.
I know this library provides setApplicationIconBadgeNumber
but it doesn't help me with this issue.
When some notifications send from our marketing panel, the app isn't open and I can not calculate the next badge number manually (by getting the previous badge number and increasing it by 1).
I need an automatic way to increase the badge number without any calculation. and it should work for local and remote notifications.
Is there any solution? Can someone help me with this issue?
@mohammad-goldast did you find any soloution