方法:
didReceive(_ request:UNNotificationRequest,withContentHandler contentHandler:(UNNotificationContent)->无效)
iOS 10的NotificationService TARGET的设置不会由iOS自动触发,即使我的远程通知的有效负载包含以下属性:“ mutable-content”:1。
这是有效负载示例:
{
"aps": {
"alert": {
"body": "body",
"subtitle": "subtitle",
"title": "title"
},
"mutable-content": 1
}
}
为了使其能够正常工作,是否必须实施缺少的配置或代码?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句