Notification badge not clearing after app launch

On iOS 18, my app’s badge sometimes remains visible after the app is opened, even though I reset it to zero. Has anyone seen this behavior with UNUserNotificationCenter, or is an additional update needed?

Notification badge not clearing after app launch
 
 
Q