I’m using CKSubscription to send push notifications, I send them well and the device receives everything correctly, but my badge count is always +1 to what it was before? How can I set it to 0 after the app was run?
I have added this code to func application didFinishLaunchingWithOptions
UIApplication.shared.applicationIconBadgeNumber = 0
But when you run the app, the badge disappears, receiving the next push notification the number rises again.