I have made a Feedback request to not deprecate the method. It is difficult for an app to parallel a set of UNNotificationRequest's set at various times and determine what badge number those requests may have set. It can be done, but what a hassle!
Topic:
App & System Services
SubTopic:
Notifications