Is it possible to prevent a remote notification from being displayed?

后端 未结 4 1756
旧巷少年郎
旧巷少年郎 2020-12-10 04:06

I\'d like to better control what notifications are being displayed to my users and selectively silence some of them. In order to do this I have implemented a UNNotificationS

4条回答
  •  借酒劲吻你
    2020-12-10 04:42

    It's really easy to miss a comment above by @Lepidopteron and falsely assume there is absolutely no way to suppress the push notification - there is, and it's called silent push notification. It has a few limitations though. As stated in Apple's docs, you can send only 2-3 of these an hour, and there is no delivery guarantee.

提交回复
热议问题