firebase-messaging
FCM/GCM push notification client
Decision gist · record as of 2026-08-14
Yes, if you need to receive FCM notifications in a Python application. The library is actively maintained, has low install friction, carries no known vulnerabilities, and supports modern Python versions. The MIT license imposes no restrictions. Install it only if you are receiving (not sending) notifications and your application is not already running on a supported FCM platform.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Must run inside an asyncio event loop; requires valid Firebase configuration (project ID, app ID, API key, message sender ID).
- Low friction install with four runtime dependencies (aiohttp, cryptography, http-ece, protobuf).
- Actively maintained with recent commits and support for current Python versions (3.9–3.13).
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal legal friction.
last release 2025-05-10 (461 days) · last repo commit 2026-06-10 · 14 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 191,754 downloads/mo, #9,876 on PyPI
Alternatives
Verify before relying
from firebase_messaging import FcmPushClient, FcmRegisterConfig
def on_notification(obj, notification, data_message):
pass
fcm_config = FcmRegisterConfig(project_id, app_id, api_key, sender_id)
pc = FcmPushClient(on_notification, fcm_config, None, None)
token = await pc.checkin_or_register()
await pc.start()- Whether credentials persistence across restarts is automatic or requires manual file handling.
- Supported FCM message payload size limits and format constraints.
- Behavior when Firebase credentials expire or become invalid during a listening session.
What it is and what it does
firebase-messaging is a Python client library for receiving push notifications delivered via Firebase Cloud Messaging (FCM) and Google Cloud Messaging (GCM). It handles the subscription handshake, credential management, and asynchronous message delivery to your application—useful when you need to listen for notifications on a backend or desktop Python process rather than on a mobile or web platform.
The library runs inside an asyncio event loop and exposes a callback-based API: you provide a notification handler, Firebase credentials, and configuration, then call start() to begin listening. It manages the underlying HTTP/2 connection to FCM, handles encryption/decryption of incoming messages using http-ece and cryptography, and invokes your callback each time a notification arrives. It is not for sending notifications—use the official Firebase SDK for that.
Use it for
- Receive FCM notifications in a Python backend service or daemon without deploying to Android, iOS, or Web.
- Build a notification relay or aggregator that listens to FCM and forwards messages to other systems.
- Monitor Firebase-sent alerts in a desktop or CLI application running on a developer's machine.
- Integrate FCM message delivery into a Python async framework (e.g., FastAPI, aiohttp) for real-time event handling.
- Test FCM notification flows in a Python test suite or integration environment.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to receive FCM notifications in a Python application.
The library is actively maintained, has low install friction, carries no known vulnerabilities, and supports modern Python versions. The MIT license imposes no restrictions. Install it only if you are receiving (not sending) notifications and your application is not already running on a supported FCM platform.
Install
firebase-messaging on PyPI
Before you install
Low friction install with four runtime dependencies (aiohttp, cryptography, http-ece, protobuf). Actively maintained with recent commits and support for current Python versions (3.9–3.13).
Must run inside an asyncio event loop; requires valid Firebase configuration (project ID, app ID, API key, message sender ID).
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal legal friction.
Quickstart
from firebase_messaging import FcmPushClient, FcmRegisterConfig
def on_notification(obj, notification, data_message):
pass
fcm_config = FcmRegisterConfig(project_id, app_id, api_key, sender_id)
pc = FcmPushClient(on_notification, fcm_config, None, None)
token = await pc.checkin_or_register()
await pc.start()
Verify before relying
- Whether credentials persistence across restarts is automatic or requires manual file handling.
- Supported FCM message payload size limits and format constraints.
- Behavior when Firebase credentials expire or become invalid during a listening session.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesaiohttpcryptographyhttp-eceprotobuf |
| Maintenance | Actively maintained 461 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 191,754 / month, #9,876 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Other EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: firebase_messaging-0.4.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fcm push notification receiver”
- firebase-messagingReceives push notifications sent via Firebase Cloud Messaging (FCM)…
- django-push-notificationsA Django app that manages device registrations and sends push…
- fcm-djangoDjango app that integrates Firebase Cloud Messaging to send push…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pyfcm · pushbullet.py · fcm-django · exponent-server-sdk · django-push-notifications · Farama-Notifications · pypushdeer · firebase-functions · pubnub · pushover-complete