I have an app on the iPad. It is not showing the badge on app icon when notification comes or server send statically. I have registered notification with badge option, but still, the badge is not appearing on the app icon. Also When I check settings -> Notification -> My App. It is not showing toggle for the badge. Only showing alert & sound, no badge. Here, I have attached an image of the setting in the notification.
Link: [https://prnt.sc/s7rnj0]
My code is as follows:
Link: [https://prnt.sc/s7sp9u]
Calling this from didFinishLaunchingWithOptions