user7420795
user7420795

Reputation: 199

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

I am trying to send the rich notification in my iOS App. I am using the FCM to send the notification. Below is the payload as mentioned here. I am using FCM Module(https://github.com/hansemannn/titanium-firebase-cloud-messaging). I am referring this sample project and successfully added UNNotificationServiceExtension in my Titanium project. But the problem here is that, I am receiving normal Notification only, image is not visible in the notification panel.

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

Upvotes: 0

Views: 460

Answers (1)

miga
miga

Reputation: 4055

Check the README of the linked github example: Rich Notifications are part of the Titanium SDK 7.2.0 release

The current SDK version is 7.1.1.GA. So it will only work if you are using the nightly builds or a custom SDK

Upvotes: 1

Related Questions