I\'ve noticed that if I create an UNCalendarNotificationTrigger
with a custom date it does\'t get added unless i put:
let trigger = UNCalendarNotificatio
On my app, I request permission after notification set by mistake. So If I want to get pending notification count, I got 0.
I requested permission on AppDelegate but notifications setted on first view viewdidload(). I added a notification function to trigger with button. After get permission click button and finally setted my notification and I got pending notification count 1.
I hope that's will help you.