1. Quickstart¶
Install package via pip:
$ pip install django-fcm
Add django-fcm resources to your URL router:
# urls.py from django.conf.urls import include, url urlpatterns = [ url(r'fcm/', include('fcm.urls')), ]
To check fcm urls just use the following command:
$ python manage.py fcm_urls FCM urls: * Register device /fcm/v1/devices/ * Unregister device /fcm/v1/devices/{id}/
Configure django-dcm in your
settings.py
file:INSTALLED_APPS = [ # ... 'fcm', ] FCM_APIKEY = "<api_key>"
Note
To obtain api key please go to https://console.firebase.google.com/ and grab the key for the server app.