fcm-django
Send push notifications to mobile devices and browsers through FCM in Django.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, supports current Django and Python versions, has no known vulnerabilities, and provides a well-documented, low-friction integration layer for Firebase Cloud Messaging in Django projects. Install it if you need to send push notifications from a Django application.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires firebase-admin to be initialized; set GOOGLE_APPLICATION_CREDENTIALS environment variable to point to your Firebase service account JSON file, or pass credentials explicitly to initialize_app().
- Low install friction with a pure Python wheel.
- Maintenance is active with recent commits and a stable codebase supporting Django 4.2 through 5.2 and Python 3.10 through 3.14.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2026-04-07 (129 days) · last repo commit 2026-04-07 · 794 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 299,530 downloads/mo, #7,859 on PyPI
Alternatives
Verify before relying
pip install fcm-django
# In settings.py:
INSTALLED_APPS = [..., "fcm_django"]
FIREBASE_APP = initialize_app() # from firebase_admin
# Send a message:
from firebase_admin.messaging import Message
from fcm_django.models import FCMDevice
device = FCMDevice.objects.first()
device.send_message(Message(data={"key": "value"}))- Whether firebase-admin>=6.9 is strictly required or only for async queryset operations
- Performance characteristics when sending to large device populations
- Specific error handling patterns beyond the documented FirebaseError and ValueError
What it is and what it does
fcm-django bridges Django applications with Firebase Cloud Messaging, providing a model-based interface to manage FCM device registrations and send push notifications. It wraps firebase-admin to handle the complexity of FCM's HTTP v1 API, storing device tokens in a Django model with metadata like device type, user association, and active status, then offering queryset methods to send messages to single or bulk device collections.
The package automates common operational tasks: it marks devices inactive when notifications fail to deliver, provides Django admin integration for testing and management, emits signals when devices are deactivated, and returns detailed batch response metadata so applications can inspect per-device failures. It supports notification messages (with title, body, image) and data messages, with optional dry-run validation before actual delivery.
Use it for
- Send targeted push notifications to mobile app users by querying the FCMDevice model and calling send_message() with a Message object.
- Automatically prune inactive devices by letting the library mark failed-delivery devices as inactive and optionally delete them.
- Test notification payloads during development using dry_run=True to validate message structure without sending real notifications.
- Manage multi-device scenarios where one user may have multiple registered devices, using ONE_DEVICE_PER_USER setting to enforce single-device-per-user rules.
- Inspect batch send failures via response.failed_registration_ids and response.failed_exceptions to diagnose configuration or credential issues.
- Integrate with Django admin to manually send test notifications and view device registration status.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, supports current Django and Python versions, has no known vulnerabilities, and provides a well-documented, low-friction integration layer for Firebase Cloud Messaging in Django projects. Install it if you need to send push notifications from a Django application.
Install
fcm-django on PyPI
Before you install
Low install friction with a pure Python wheel. Maintenance is active with recent commits and a stable codebase supporting Django 4.2 through 5.2 and Python 3.10 through 3.14.
Requires firebase-admin to be initialized; set GOOGLE_APPLICATION_CREDENTIALS environment variable to point to your Firebase service account JSON file, or pass credentials explicitly to initialize_app().
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install fcm-django
# In settings.py:
INSTALLED_APPS = [..., "fcm_django"]
FIREBASE_APP = initialize_app() # from firebase_admin
# Send a message:
from firebase_admin.messaging import Message
from fcm_django.models import FCMDevice
device = FCMDevice.objects.first()
device.send_message(Message(data={"key": "value"}))
Verify before relying
- Whether firebase-admin>=6.9 is strictly required or only for async queryset operations
- Performance characteristics when sending to large device populations
- Specific error handling patterns beyond the documented FirebaseError and ValueError
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesfirebase-adminDjangoswapper |
| Maintenance | Actively maintained 129 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 299,530 / month, #7,859 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.1Framework :: Django :: 5.2Intended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Networking |
Evidence: fcm_django-3.2.0-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 › “django firebase push notifications”
- fcm-djangoDjango app that integrates Firebase Cloud Messaging to send push…
- django-push-notificationsA Django app that manages device registrations and sends push…
- pyfcmPyFCM is a Python client for Firebase Cloud Messaging (FCM) that…
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 django-push-notifications · exponent-server-sdk · pyfcm · firebase-messaging · firebase-admin · firebase-functions · pushbullet.py · urbanairship · pywebpush · apns2-up