|
/

关于支持the Notification Service Extension

Y易惠付
发布于 4 年前
237
消息推送 U-Push
功能使用

我们需要使用UNNotificationServiceExtension通知扩展服务,来对iOS端的远程推送消息进行修改。

其中要求

The system executes your notification service app extension only when a remote notification’s payload contains the following information:

  • The payload must include the mutable-content key with a value of 1.
  • The payload must include an alert dictionary with title, subtitle, or body information.

即Specifying the remote notification payload

{
"aps": {
"category": "SECRET",
"mutable-content": 1,
"alert": {
"title": "Secret Message!",
"body": "(Encrypted)"
},
},
"ENCRYPTED_DATA": "Salted__·öîQÊ$UDì_¶Ù∞èΩ^¬%gq∞NÿÒQùw"
}

请问怎么设置上这个参数,使得aps中包含mutable-content

2个回答
 
4 年前
来自上海

楼主看看这个集成文档https://developer.umeng.com/docs/67966/detail/66734#h1-u-push-6

 
4 年前
Loading ...
登录社区,分享你的经验