简体   繁体   English

是否确保UNNotificationServiceExtension调用可变内容= 1的每个通知

[英]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连接。

  • If not, then what is the point of 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.

相关问题 我可以在本地推送通知而不是远程通知中使用可变内容吗? - Can I use mutable-content with local push notification instead of remote notification? 在Twilio聊天iOS APN推送有效载荷中将可变内容设置为1 - Set mutable-content to 1 in Twilio chat iOS APN push payload 带有UNUserNotificationCenter和UNNotificationServiceExtension的willPresentNotification调用序列 - Call Sequence of willPresentNotification with UNUserNotificationCenter and UNNotificationServiceExtension 在UNNotificationServiceExtension中将系统声音添加到iOS远程通知 - Add System Sound to iOS remote notification in UNNotificationServiceExtension iOS推送通知-不保证 - iOS Push notification - not guaranteed 将NSDictionary中的每个NSArray更改为Mutable - Change every NSArray within NSDictionary to Mutable 我们需要每天早上 7 点运行重复通知,并且内容是动态的 - We need to run a repeat notification every day 7am and the content is dynamic CloudKit订阅和UNNotificationServiceExtension - CloudKit subscriptions and UNNotificationServiceExtension 在UNNotificationServiceExtension中执行HTTP请求 - Perform an HTTP request in UNNotificationServiceExtension 未调用UNNotificationServiceExtension的didRecieve - UNNotificationServiceExtension's didRecieve not called
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM