await step.push('push', async () => { return { subject: 'You received a message', body: 'A new post has been created', };});
Steps
Push Channel Step
Copy
await step.push('push', async () => { return { subject: 'You received a message', body: 'A new post has been created', };});
The push step allows you to send a message to a push channel. This is useful when you need to send a message to a push-enabled channel, such as a mobile app or web app.
Copy
await step.push('push', async () => { return { subject: 'You received a message', body: 'A new post has been created', };});
In order to send a push notification to a subscriber, you need to set the specific push provider credentials for the subscriber.
You can learn more about how to achieve this for each provider in the Provider Documentation.