@wolfxlabs/fcm
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

wolf FCM Provider

A FCM push provider library for @novu/node

Usage

The payload field supports all NotificationMessagePayload values, example below.

import { wolf } from '@novu/node';

const wolf = new wolf(process.env.NOVU_API_KEY);

wolf.trigger('event-name', {
  to: {
    subscriberId: '...',
  },
  payload: {
    deviceTokens: ['abcda...'], // Override subscriberId notification/device identifiers
    badge: 1, // iOS: The value of the badge on the home screen app icon, if 0 then the badge is removed.
    clickAction: 'clickity', // Android: Action associated with a user click on the notification.
    color: '#ff00ff', // Android: Hex color of the notification
    icon: 'myicon', // Android: Drawable resource id of icon, Web: URL to icon
    sound: 'custom_sound', // Android: name of custom notification sound
  },
});

Readme

Keywords

none

Package Sidebar

Install

npm i @wolfxlabs/fcm

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

53.3 kB

Total Files

32

Last publish

Collaborators

  • tecklens1