Error message is: 'CKModifyBadgeOperation' is deprecated: first deprecated in iOS 11.0 - No longer supported, will cease working at some point in the future
Does anyone know how to reset the badge number if you want the badge to indicate the number of notifications that were sent to the app since the last time the app was opened? If you just reset it to 0 on the device without using CKModifyBadgeOperation then the next time CloudKit sends a notification the number displayed is the old number plus 1.