ios - iOS 14 通知不显示图像
问题描述
嗨,我在 iOS 上开发并按照此说明进行操作
https://www.avanderlee.com/swift/rich-notifications/
我的“notification.apns”看起来像这样
{
"Simulator Target Bundle": "com.xxxxxxxxxxxxxxxxx",
"aps": {
"category": "content_added_notification",
"alert": {
"title": "Photos",
"body": "Antoine added something new - take a look"
},
"mutable-content": 1
},
"image_url": "https://upload.wikimedia.org/wikipedia/commons/d/d5/Basketball_Ball_Icon.png"
}
和这样的通知显示。
它有什么问题??
解决方案
只需重新启动您的设备。我想这是新版本的另一个错误