Open chandanchhajer opened 3 years ago
I added this and added all forks - https://gitlab.com/akumria/findforks
searching through the repo / branches (can't do in github) - yields no relevant results.
UPDATE
https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#apnsfcmoptions
seems like mutable-content:1 is the key.
f1b49caa10748883278429a806611b7f60117103
seems like the rawpayload needs to be overridden / in conjunction with
otherCustomURL:"http://image.com/1.png"
though there's no mention of otherCustomURL in this repo https://github.com/node-apn/node-apn/search?q=otherCustomURL
notification.rawPayload = {
aps: {
alert: {
title: newTitle,
body: newBody
},
"mutable-content":1,
sound: "default",
badge: 1,
category: "br.com.inngage.Custom-Notification-Interface.notification",
otherCustomURL:req.body.sendPushRequest.control_message.image_url ,
url: req.body.sendPushRequest.control_message.url,
provider: "inngage",
id:req.body.sendPushRequest.control_message.notid ,
inngage_data: ""
}
};
https://github.com/johndpope/inn-node-api/blob/master/v4/message/controllers/notifications.js#L849
Hi, How we can send an image in notifications for this package. Please share the solution if you have.