To show badge label, application should be authorized to do it. You should call:
UNUserNotificationCenter requestAuthorizationWithOptions with UNAuthorizationOptionBadge
on applicationDidFinishLaunching before assigning any badge.
After
completionHandler
is done, you became able to assign badges and them should appear.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: