[英]Is UNNotificationServiceExtension guaranteed to call for every notification with mutable-content=1
I understand that with silent notifications, there is a possibility of make n/w connections when app is in background. 我了解,通过静默通知,当应用程序处于后台时,可以建立n / w连接。 iOS may not always call
didReceiveNotification
depending on various conditions like connected to power etc. iOS可能并不总是根据连接电源等各种条件来调用
didReceiveNotification
。
I notice with iOS 10 we have UNNotificationServiceExtension
which gets called before notification is delivered to user. 我注意到在iOS 10中,我们有
UNNotificationServiceExtension
,它在通知传递给用户之前会被调用。 In this extension we can actually make n/w connections in bg. 在此扩展中,我们实际上可以使用bg建立n / w连接。
UNNotificationServiceExtension
? UNNotificationServiceExtension
什么UNNotificationServiceExtension
? what is the point of UNNotificationServiceExtension
UNNotificationServiceExtension有什么意义
For one thing — quite a big thing — it is to allow you to customize the interface that the user sees when force-touch-pressing / long-pressing the notification alert. 一方面-很大的一件事情-是允许您自定义用户在强制触摸/长按通知警报时看到的界面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.