jlcvp / fcm-node

A Node.JS simple interface to Google's Firebase Cloud Messaging (FCM) for Android & iOS & Web Notification and data push
MIT License
125 stars 46 forks source link

How can I pass additional settings of notification i.e. TTL #88

Closed impratick closed 2 years ago

impratick commented 2 years ago

I want to set TTL of notification for android and iOS. As per google document, we achieve it by adding the below params into the FCM payload.

Link: https://firebase.google.com/docs/cloud-messaging/concept-options#ttl

Please help me with this

jlcvp commented 2 years ago

This is a newer feature this lib doesn't support. Additionally, this lib is becoming strongly deprecated and I do not intend to keep the support for it any further, please use the official firebase sdk for node.