簡體   English   中英

通過FCM發送時,Appcelerator iOS Rich Push Notification不顯示圖像

[英]Appcelerator iOS Rich Push Notification not showing image when sent through FCM

我正在嘗試在我的iOS應用中發送豐富的通知。 我正在使用FCM發送通知。 下面是此處提到的有效負載。 我正在使用FCM模塊( https://github.com/hansemannn/titanium-firebase-cloud-messaging )。 我正在引用樣本項目,並在我的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"
    }
}

檢查鏈接的github示例的自述文件: Rich Notifications are part of the Titanium SDK 7.2.0 release

當前的SDK版本是7.1.1.GA。 因此,僅當您使用夜間版本或自定義SDK時,此方法才有效

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM