FCM: `apns.fcmOptions.imageUrl` and `notification.imageUrl` not rendering images for < iOS 18 and < ipadOS 18
@chong-shao is already working on this.
Since Dec 19, 2024.
Assessment
This issue has not been assessed yet.
Description
[REQUIRED] Step 2: Describe your environment
- Operating System version: < iOS 18, < ipadOS 18 (client), Ubuntu 14.04.6 LTS (server)
- Firebase SDK version: 12.0.0
- Firebase Product: Cloud messaging (FCM)
- Node.js version: 16 (LTS)
- Yarn version: 1.22.22
[REQUIRED] Step 3: Describe the problem
-
Images do not render on iOS < 18 and ipadOS < 18 devices, when sending a payload with
apns.fcmOptions.imageUrlornotification.imageUrl. I thought it might be related to image size so I sent an image with a size of 400 bytes but still no luck. -
Slightly unrelated, but the docs state to use
apns.fcmOptions.image(source) whilst the TypeScript interface declaresapns.fcmOptions.imageUrl(code). I've tried setting an ignore rule for the compiler to useapns.fcmOptions.imagein the payload, whilst this also renders images for iOS 18 and ipadOS 18, it still doesn't render for iOS 17 and ipadOS 17 devices.
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
- Create notification payload with image url set as
apns.fcmOptions.imageUrlornotification.imageUrl - Send notification (using
sendEachForMulticast()) - Observe received notification on iOS 18 and ipadOS 18 devices, image successfully displayed on both
- Observe received notification on iOS 17 and ipadOS 17 devices, image not displayed on either
Example: Successful notification on ios 18 with image
Relevant Code:
Example payload
{
apns: {
fcmOptions: {
imageUrl: "imageUrl"
},
payload: {
aps: {
alert: {
body: "body"
},
mutableContent: true
}
}
}
}
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 419
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 16
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/firebase-admin-node
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
firebase/firebase-admin-node#3234 ·
-
firebase/firebase-admin-node#3221 · 3 comments · 1 assignee ·
-
api: messaging
Difficulty 3/5 1-2 days Newbie friendliness 70/100
firebase/firebase-admin-node#3215 ·
-
api: messaging
Difficulty 5/5 Over a week Newbie friendliness 28/100
firebase/firebase-admin-node#3214 ·
-
api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 comment · 1 assignee ·
All issues in firebase/firebase-admin-node
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100