Send an image in the notification payload #16
Answered by lkaybob
rizalahmaddd asked this question in Q&A
-
how to send an image in the notification payload? |
Beta Was this translation helpful? Give feedback.
Answered by lkaybob May 7, 2023
Replies: 2 comments 3 replies
-
Currently attaching image on notification payload is not supported with php-fcm-v1. It looks like HTTP v1 API does support it, so it needs to be implemented in php-fcm-v1 https://firebase.google.com/docs/cloud-messaging/android/send-image?hl=ko#rest |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by lkaybob
-
Hello @lkaybob I made a few modifications to your code and that allows me to send the images. I would like to be able to add my participation with this code fragment to your project, will it be possible? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Currently attaching image on notification payload is not supported with php-fcm-v1. It looks like HTTP v1 API does support it, so it needs to be implemented in php-fcm-v1
https://firebase.google.com/docs/cloud-messaging/android/send-image?hl=ko#rest