Laravel-FCM icon indicating copy to clipboard operation
Laravel-FCM copied to clipboard

Add support for fcmOptions

Open mathieu21 opened this issue 5 years ago • 7 comments

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

mathieu21 avatar Sep 08 '20 12:09 mathieu21

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

williamdes avatar Nov 24 '20 13:11 williamdes

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

techfaceus avatar Jun 16 '21 09:06 techfaceus

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

williamdes avatar Nov 23 '21 00:11 williamdes

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?

quocthi2005 avatar Sep 08 '22 10:09 quocthi2005

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?

williamdes avatar Sep 08 '22 11:09 williamdes

Thank you @williamdes

Do you want to help?

Yes, it's great

quocthi2005 avatar Sep 08 '22 14:09 quocthi2005

Thank you @williamdes

Do you want to help?

Yes, it's great

Feel free to send pull-requests

williamdes avatar Sep 08 '22 17:09 williamdes

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

williamdes avatar Jun 10 '24 17:06 williamdes