Adding Push Channel
Learn how to add the push channel to your application
Add a push channel provider
To send push notifications using Novu, you need to set up a provider in the integration store.
- Go to the Novu Dashboard and click “Integrations” on the left sidebar
- Locate your desired push provider and configure it with the required credentials
- Ensure the provider is enabled
Set up push channel in a workflow
Add push notifications to a new or existing workflow.
- Navigate to the “Workflows” section in the Novu Dashboard
- Click “Add a Workflow” or select an existing workflow
- Add a step and choose “Push” as the channel
- Configure the push step by adding static or dynamic content such as title, message body, and variables
Store device tokens in subscriber profiles
For push notifications to reach the right subscribers, store provider-specific device tokens or identifiers.
- Follow your provider’s documentation to obtain device tokens
- Use Novu’s subscriber management features to add these tokens to the subscriber profiles
Verify provider configuration
Before triggering workflows, ensure your provider configuration is complete.
- Refer to your push provider’s documentation to confirm all required steps are correctly set up
- Double-check any provider-specific settings in the integration store
Trigger and test push workflow
Test the push workflow to ensure everything is working as expected
- Go to the “Workflows” section in the Novu Dashboard and select your configured workflow
- Use the “Test Workflow” option
- Verify the push notification delivery in Novu Logs or the push provider’s dashboard
Supported providers
- Firebase Cloud Messaging (FCM)
- Expo push
- Apple push notification Service
- OneSignal
- Pushpad
- Push webhook
Managing push device tokens
To send push notifications to subscribers, you need to store device tokens or identifiers in subscriber profiles. These tokens are unique identifiers that help push notification providers deliver messages to the correct devices. Each provider has its own method for obtaining and storing device tokens.
Novu offers to ways of keeping your device tokens in sync with subscriber profiles:
- Just-in-time: Pass device tokens in the payload when triggering a workflow. Novu will automatically update subscriber profiles with the new device tokens.
- Manual: Update subscriber profiles with device tokens using the Novu set credentials API.
Just-in-time
When triggering a workflow, you can pass the channels
array on the subscriber object with the device tokens for the push provider of your choice. Here is an example with fcm:
Manual
Use the Novu Set Credentials API to update subscriber profiles with device tokens. You can read more about the API in the API Reference or the FCM Example
Frequently Asked Questions
How to remove one device token from subscriber credentials?
To remove a device token from subscriber credentials, you need to get the current device tokens from subscriber credentials, remove all deviceTokens
, remove the token you want to remove and then update the subscriber credentials with new device tokens.
Was this page helpful?