Skip to main content

Pre-requisites

  1. FCM token: In the Sample Flutter Set up section, the implementation logs the FCM token for the developer’s device.
  2. Access to the API: In the Service Account section, we downloaded JSON for a service account with access to the API.
Complete implementation for reference.

[Sample] Python Push Notification Sender

The following Python script demonstrates how to send push notifications using Firebase Cloud Messaging:

Complete Implementation

For a complete Flutter implementation, refer to the Flutter Sample Setup which includes all the necessary code to receive and handle push notifications in your mobile application.

Debugging

A local debugger can be used to debug the notification reception and events logging. Firebase provides a debug view in the Firebase console that allows you to see events as they occur.