Push notifications: badge not removing on iOS

Since I migrated from Capacitor 3 to 4, the notification badge in iOS is not removed when calling removeAllDeliveredNotifications(). Android works fine.
Someone else having this problem?