A Python client for Firebase Cloud Messaging (FCM) and Google Cloud Messaging (GCM) for sending push notifications. Current version 0.4.5 supports HTTP v1 API and legacy HTTP APIs. Actively maintained with weekly releases.
pip install firebase-messagingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sends a push notification to a single device token using Firebase Cloud Messaging HTTP v1 API.
Ensure you pass a file path string, e.g., `.json` file from Firebase Console.
Instantiate `FirebaseMessaging` with `use_legacy=False` (default) and use OAuth2 authentication.
Update imports: `from firebase_messaging import FirebaseMessaging`