push step allows you to send notifications to mobile and web applications through various push notification providers.
Example Usage
Push Step Output
Push Step Result
Thepush step does not return any result object.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the push step in Novu Framework to send mobile and web push notifications through providers like FCM, APNs, OneSignal, and Expo.
push step allows you to send notifications to mobile and web applications through various push notification providers.
await step.push('new-message', async () => {
return {
title: 'New Message',
body: 'You have received a new message from John',
data: {
messageId: '123',
senderId: '456',
},
};
});
| Property | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | The notification title that appears in the push notification |
| body | string | Yes | The main content of the push notification |
| data | object | No | Additional data to be sent with the notification |
| image | string | No | URL of an image to display in the notification |
| icon | string | No | URL of an icon to display in the notification |
push step does not return any result object.
Was this page helpful?