我们需要在当前的应用程序中实现丰富的通知,包括音频、视频、图像、gif。
我已经实现了一切并且工作正常。今天开始测试更多的推送通知,但没有任何效果..
类似问题:https ://forums.developer.apple.com/thread/61774
没有可变内容的正常通知工作正常。为什么向有效负载添加可变内容密钥时它不起作用?
据我测试,证书方面没有问题。我正在使用 NotificationService 扩展来显示媒体附件
任何想法?
我的有效载荷如下所示:
{
"aps":{
"alert":{
"body":"On my way to searching humanity….. Did u see that?",
"title":"God!!!"
},
"mutable-content":1,
"category":"imageIdentifier"
},
"pic_url":"https://umad.com/img/2016/5/big-bear-wallpaper-background-12353-12796-hd-wallpapers.jpg",
"mediaType":"image"
}
我正在使用 APNS 在线测试仪https://pushtry.com/