Context
My App
used Local Notifications
and I would like to implement a Badge Count
. However, the moment the Badge Count
should increase (+1
for each new Notification
), the App
is not open most of the time and I could't find a Delegate Method
or something that gets called when a Notification
gets delivered.
Code
try? await UNUserNotificationCenter.current().setBadgeCount(0)
Question
- How can I update the
App's
Badge Count
from the background when a newNotification
gets delivered?