![](/img/trans.png)
[英]Display image in notification bar with remote notification(Rich media push notification) in iOS 10
[英]Flutter iOS Rich Push Notification Image not display
Flutter 推送通知
我在 Flutter 中實現了推送通知並且通知有圖片鏈接。 在 Android 中,圖像會自動顯示在通知中心,並帶有通知詳細信息。 在iOS中,通知中心不顯示圖片,通知中心只顯示通知詳情。
請參閱推送通知的格式。 卷曲通過,Php 開發人員正在發送通知。 我成功收到通知,但圖像未在 iOS 端自動顯示,並且在 Android 圖像中自動顯示我已經添加了 "mutable-content": true 並且已經嘗試在通知塊中添加 "mutable-content": true 但沒有得到成功
{
"to": "device token",
"mutable-content": true,
"notification": {
"title": "Note 3",
"body": "11:41",
"click_action": "FLUTTER_NOTIFICATION_CLICK",
"image": "https://homepages.cae.wisc.edu/~ece533/images/airplane.png"
},
"data": {
"notification_type": "Nice Thoughts",
"post_details": {
"message": "hello",
"color": "#e0e0e0",
"url": "www.recurpost.com",
"img_url": "https://homepages.cae.wisc.edu/~ece533/images/airplane.png",
"video_url": "",
"name": "abc xyz"
}
},
"priority": "high"
}
您需要按照此處所述創建通知服務擴展
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.