【发布时间】:2018-05-08 12:12:24
【问题描述】:
我正在尝试在我的 iOS 应用中发送丰富的通知。我正在使用 FCM 发送通知。下面是here 中提到的有效负载。我正在使用 FCM 模块(https://github.com/hansemannn/titanium-firebase-cloud-messaging)。我指的是this 示例项目,并在我的Titanium 项目中成功添加了UNNotificationServiceExtension。
但这里的问题是,我只收到普通通知,通知面板中看不到图像。
{
"to": "e4DgI95lsPA:APA91bHFX9MUmJ....",
"content_available": true,
"mutable_content": true,
"click_action": "DOWNLOAD_CONTENT",
"data": {
"message": "Offer!",
"attachment-url": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/FloorGoban.JPG/1024px-FloorGoban.JPG"
},
"notification": {
"body": "Enter your message",
"sound": "default"
}
}
【问题讨论】:
标签: ios firebase apple-push-notifications firebase-cloud-messaging appcelerator