Skip to main content
Version: v0.14

Getting Started

Execution

# Select PushNotifications while configuring your modules
npx @conduitplatform/cli deploy --config

Where do I start?

To start sending notifications you need to create a Firebase project.
Make sure you've configured the module.

Send notifications

Client App

The first thing you have to keep in your mind is that each token is related to notification token.
In fact, the notification token is the Firebase Cloud Messaging registration token.
Your first job is to set up a client application and retrieve its registration token.
See how to set up your client here.

Set notification token

After receiving the FCM registration token, you are ready to proceed.
As mentioned above, each user is related to a token. In a way I lied. You are the one to link these Firebase tokens to your user accounts through an application request.
For details on how to do that, check out your generated Swagger or GraphQL route documentation.

Send a message

Select the user that you want to receive the push notification and make sure that the selected user has a token assigned to himself.

Send message push