最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - The getDeliveredNotifications returns an empty array for local notifications - Stack Overflow

programmeradmin2浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论