code-lts / Laravel-FCM

Laravel-FCM is an easy to use package working with both Laravel and Lumen for sending push notification with Firebase Cloud Messaging (FCM).
MIT License
36 stars 14 forks source link

Add support for fcmOptions #3

Closed mathieu21 closed 1 month ago

mathieu21 commented 3 years ago

Add support for fcmOptions: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#AndroidFcmOptions

Including Analytics labels used to filter data in Firebase

williamdes commented 3 years ago

Hi @mathieu21 Could you test this before a release is done ?

yaroslavsnisarua commented 3 years ago

When send Push with analyticsLabel, it not shown at Firebase Chart.

williamdes commented 2 years ago

See: https://github.com/ToothlessGear/node-gcm/issues/340#issuecomment-663800667

Indeed this parameter is not supported in the FCM Legacy HTTP Server API.

So we need to migrate to V1 API, see #9

cc @mathieu21

quocthi2005 commented 1 year ago

Hi @williamdes How to add analyticsLabel to the message? Firebase has a feature to set this. https://firebase.google.com/docs/cloud-messaging/understand-delivery#adding-analytics-labels-to-messages

How to set this in this package?

williamdes commented 1 year ago

Hi!

we need to migrate to V1 API, see #9

The current API does not take the analytics label in account. So we need to migrate to the new API. Do you want to help?

quocthi2005 commented 1 year ago

Thank you @williamdes

Do you want to help?

Yes, it's great

williamdes commented 1 year ago

Thank you @williamdes

Do you want to help?

Yes, it's great

Feel free to send pull-requests

williamdes commented 1 month ago

See https://github.com/code-lts/Laravel-FCM/issues/9