Notifyr is a class provided to send notifications. Please use the Notifyr class on the server since it requires an API key.
const notifyr = new Notifyr(process.env.NOTIFYR_API_KEY);
const response = await notifyr.sendNotification({
title,
body,
type,
groupId,
});
| parameter | type | description |
|---|---|---|
| title | Required string | Title of the notification |
| body | Required string | Body of the notification |
| type | Required string | Type of the notification which dictates the color. One of INFO SUCCESS WARNING ERROR |
| groupId | Required string | Which group to send the notification to |