Questions tagged [django-push-notifications]

A minimal Django app that implements Device models that can send messages through APNS and GCM.

Django Push Notifications is a minimal Django app that implements Device models that can send messages through APNS and GCM.

Django 1.8 is required. Support for older versions is available in the release 1.2.1. Tastypie support should work on Tastypie 0.11.0 and newer. Django REST Framework support should work on DRF version 3.0 and newer.

Author: Jerome Leclanche

Home Page: https://github.com/jleclanche/django-push-notifications

Download URL: https://github.com/jleclanche/django-push-notifications/tarball/master

Pypi URL: https://pypi.python.org/pypi/django-push-notifications

30 questions
3
votes
3 answers

SSLError: [Errno 1] _ssl.c:510: error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol version

django-push-notifications was working with both sandbox and production certificates. But since yesterday it is failing with following errors. SSLError: [Errno 1] _ssl.c:510: error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol…
2
votes
2 answers

django-push-notifications in Django Rest Framework

I'm trying to use django-push-notifications library in my Django REST backend project. I have used Firebase Cloud Messaging. Here is the implementation; settings.py PUSH_NOTIFICATIONS_SETTINGS = { "FCM_API_KEY": "private key from FCM…
2
votes
1 answer

Sending iOS Push Notifications using Django: HTTP/2-based APNs provider API and binary protocol

We need to send iOS push notifications using our Django based backend. Currently, we use this library https://github.com/jazzband/django-push-notifications for sending notifications. Recently, received this mail from Apple Developers. The…
2
votes
0 answers

django push notifications throws gcm error

I am using django push notifications but I am sometimes getting the following error raised unexpected: GCMError({'multicast_id': 1826728239203974173, 'success': 4, 'failure': 1, 'canonical_ids': 0, 'results': [{'message_id':…
2
votes
1 answer

How to send push notification on IOs using fcm_django

I'm using this plugin to send push notifications from my Django REST app. https://github.com/xtrinch/fcm-django It works fine for the android side but IOs are unable to receive any notifications. Can anybody please tell me what I'm I missing here.…
1
vote
0 answers

Django push notifications: InvalidRegistration with correct registration_id

I'm trying to send push notifications with my Django App and the library django-push-notifications to specific Android devices using FCM. I always get the same error: {'multicast_id': 7577544316157180554, 'success': 0, 'failure': 1, 'canonical_ids':…
fedest
  • 1,190
  • 3
  • 15
  • 35
1
vote
0 answers

How to send foreground and background push notification to android using django push notification package

Iam using django-push-notification package in django project , In android it the json response should be in the format : { "data": { "title" : "You have a notification", "body" : "The body of the notification", "id" : 1234, "backgroundImage" :…
1
vote
1 answer

Using FCM with django and flutter

I have a django backend server and I want to send notification to my flutter app. I want to use Firebase Cloud Messaging for this. My question is, do I need to store something in my database to send notification to the app? I was planning to use…
1
vote
1 answer

How to use django-push-notifications with an APNS .p8 certificate

Has anybody used the django-push-notifications library recently? It looks useful, but it seems like it needs an update. The documentation at https://github.com/jazzband/django-push-notifications/blob/master/docs/APNS.rst only discusses how to…
Dylan
  • 2,315
  • 2
  • 20
  • 33
1
vote
0 answers

django-push-notification 401 unauthorised

I am trying to setup push notifications using the django-push-notifications, I have copied most of the code from the example. I have a button that calls the enablePushNotifications() function: export function enablePushNotifications() { …
mousetail
  • 7,009
  • 4
  • 25
  • 45
1
vote
0 answers

How to allow one django project to have different application notification settings

PUSH_NOTIFICATIONS_SETTINGS = { 'FCM_API_KEY': '[key]', "FCM_ERROR_TIMEOUT": 1800, 'APNS_CERTIFICATE': os.path.join(BASE_DIR, "[.pem]"), "APNS_USE_SANDBOX": "api.development.push.apple.com", "UPDATE_ON_DUPLICATE_REG_ID":…
chetan
  • 129
  • 2
  • 12
1
vote
1 answer

Can I manually create a registration token for my iPhone to use for Firebase Cloud Messaging?

I am trying to play around with django-push-notifications to hopefully integrate it with our system soon. Part of our team is working on the app itself within Firebase, but as a Python backend developer, I would like to test out sending…
1
vote
1 answer

django push notification showing error in deployment

settings.py: PUSH_NOTIFICATIONS_SETTINGS = { "APNS_CERTIFICATE": os.path.join(BASE_DIR, 'app.pem'), "APNS_TOPIC": "app.Tamakoshi", "APNS_USE_SANDBOX":True, } from the admin panel i created a APNSDevice and entered the Registration ID…
1
vote
1 answer

APNS_CERTIFICATE - Push Notification does not send in production

I've had this issue for about 2 weeks, when I suddenly stopped sending notifications in production. I am using the django-push-notifications library and by django admin I can send a test message, but it does not send messages through the system. On…
1
vote
1 answer

Apple Push Notifications are not working in production with django-push-notifications

I am using Django as my backend and front end iOS. I used django-push-notifications for sending push notification to iOS devices. I used proper certificate for this circumstances, which I test from my local (with production certificate) and gained…
1
2