good day, I need help with see below
when the notification is OK, the badge is added. If the application is opened the badge disappears. that is right. when a new notification arrives badge it is not 1 but the value is previous value +1.
I need the value to be 0 when the application is opened.
it's about resetting the badge value.
I don't know if this code Is correct for my functionality. func applicationDidBecomeActive (_ application: UIApplication) { UIApplication.shared.applicationIconBadgeNumber = 0 }
the value does not reset but only disappears.