FCM: `apns.fcmOptions.imageUrl` and `notification.imageUrl` not rendering images for < iOS 18 and < ipadOS 18
@chong-shao đang làm issue này rồi.
Từ ngày 19/12/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
[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
}
}
}
}
- Ngôn ngữ chính
- TypeScript
- Star
- 1.7k
- Fork
- 419
- Merge trung bình
- 4 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 16
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebase-admin-node
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
firebase/firebase-admin-node#3234 ·
-
firebase/firebase-admin-node#3221 · 3 bình luận · 1 người được giao ·
-
api: messaging
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
firebase/firebase-admin-node#3215 ·
-
api: messaging
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
firebase/firebase-admin-node#3214 ·
-
api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 bình luận · 1 người được giao ·
Tất cả issue của firebase/firebase-admin-node
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mksglu/context-mode#1200 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anthropics/claude-code#96687 ·
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
AOSSIE-Org/DebateAI#582 · 2 bình luận ·