When I try to get a list of delivered local notifications, I consistently get an empty array, although they are in the notification center. I just do
UNUserNotificationCenter.current().getDeliveredNotifications { print($0) }
and it does not work
I expect not empty array. In different thread i see that applicationBadgeNumber can break this logic, but i didn't use it