How can I add an image to an iOS push notification? I tried setting the imageUrl
property, but it did not work. However, I was able to make it work by using the UI from their website.
{
app_id: process.env.ONE_SIGNAL_ID,
include_external_user_ids: d.emails,
headings: { en: d.headings },
subtitle: { en: d.subtitle },
contents: { en: d.contents },
app_url: "https://google.com",
web_url: "https://google.com",
ios_badgeType: "Increase",
image_url:
"https://cdn.pixabay.com/photo/2018/01/21/01/46/architecture-3095716_960_720.jpg"
},