FCM: `apns.fcmOptions.imageUrl` and `notification.imageUrl` not rendering images for < iOS 18 and < ipadOS 18
@chong-shao 已经在做这个了。
开始于 2024年12月19日。
评估
这个 Issue 还没有评估数据。
描述
[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
}
}
}
}
- 主要语言
- TypeScript
- 星标
- 1.7k
- 派生
- 419
- 平均合并
- 4 天 20 小时
- 30 天内合并 PR
- 16
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-admin-node 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
firebase/firebase-admin-node#3234 ·
-
firebase/firebase-admin-node#3221 · 3 条评论 · 已指派 1 人 ·
-
api: messaging
难度 3/5 1-2 天 新手友好度 70/100
firebase/firebase-admin-node#3215 ·
-
api: messaging
难度 5/5 一周以上 新手友好度 28/100
firebase/firebase-admin-node#3214 ·
-
api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 条评论 · 已指派 1 人 ·
查看 firebase/firebase-admin-node 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 90/100
TanStack/tanstack.com#1293 ·