简体   繁体   中英

Flutter iOS Rich Push Notification Image not display

Flutter Push Notification

I implemented Push Notification and notification has image link in Flutter. In Android, The image display in Notification center automatically with notification details. In iOS, The image does not display in Notification center but only notification details display in Notification center.

please see format of Push notification. Curl through, Php developer is sending notification. I am getting notification successfully but image not display automatically at iOS side and, in Android image is display automatically I already add "mutable-content": true and, already tried to add "mutable-content": true in notification block but not getting success

{
"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"

}

您需要按照此处所述创建通知服务扩展

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM