Docs
Skip to content

Messaging

Firebase Cloud Messaging_

Send push notifications to Android, Apple, or Web app with Firebase Cloud Messaging (FCM).

4 min read

Raw

Firebase Cloud Messaging (FCM) lets you send push notifications to your iOS, Android, and web apps through Appwrite Messaging. Before you can deliver messages, you must connect to a messaging provider.

1. Add provider

To add FCM as a provider, navigate to Messaging > Providers > Add provider > Push notification.

Add a FCM provider
Add a FCM provider

Give your provider a name > choose FCM > click Save and continue. The provider will be saved to your project, but not enabled until you complete its configuration.

2. Configure provider

In the Configure step, you will need to provide details from your Firebase console to connect your Appwrite project.

You will need to provide the following information from the Firebase console.

Head to Project settings > Service accounts > Generate new private key.

FCM admin key
FCM admin key

After all the relevant details are provided, you can enable the provider.

3. Configure app

Some additional configuration is required to enable push notifications in your mobile app.

4. Test provider

Push notification requires special handling on the client side. Follow the Send push notification flow to test your provider.

5. Manage provider

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.