方法:
iOS 10的NotificationService目标中的didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler:(UNNotificationContent) -> Void)方法不会被iOS自动触发,即使我的远程通知负载包含属性:"mutable-content":1。
以下是负载示例:
{
"aps": {
"alert": {
"body": "body",
"subtitle": "subtitle",
"title": "title"
},
"mutable-content": 1
}
}
是否有任何遗漏的配置或代码需要实现以使其正常工作?