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.

await step.push('push', async () => {
    return {
        subject: 'You received a message',
        body: 'A new post has been created',
    };
});

Push Credentials

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.

Push Output

subject
string
required

The subject of the notification.

body
string
required

The message to be sent.

Push Result

The push step does not return any result object.