Questions tagged [pyapns]

A universal Apple Push Notification Service (APNS) provider.

pyapns is an APNS provider that you install on your server and access through XML-RPC. To install you will need Python, Twisted_ and pyOpenSSL_.

12 questions
7
votes
1 answer

PyAPNs sending push notification to more than one device token not working

I am using PyAPNs for sending iOS Push Notification. I also merged the fixes for following known issues https://github.com/djacobs/PyAPNs/issues/13 Now, the code is working fine If I send notification to an individual device. But I have a list for…
gmuhammad
  • 1,434
  • 4
  • 25
  • 39
2
votes
0 answers

How to get the custom payload from pyapns using phonegap push plugin?

we are using PYAPNS to send push notifications from an Django application to iOS devices running an phonegap application. The server code looks like this: def sendNotificationAPNS(title, message, targets, eventid): apns = APNs(use_sandbox=False,…
2
votes
1 answer

PyAPNs and the need to Sleep between Sends

I am using PyAPNs to send notifications to iOS devices. I am often sending groups of notifications at once. If any of the tokens is bad for any reason, the process will stop. As a result I am using the enhanced setup and the following…
C6Silver
  • 3,127
  • 2
  • 21
  • 49
1
vote
0 answers

How to use PyAPNs2 with certificate and key?

I successfully managed to send push notifications from command line using the Send a Push Notification Using a Certificate example, which uses both the certificate.cer and the key.key to establish the connection with the APNs server. I wish to run a…
Nazar
  • 820
  • 5
  • 13
  • 36
1
vote
1 answer

PyAPNs throws IOError Operation not supported by device

I am trying to implement APNS for my iOS push app from this tutorial raywenderlich tutorial. As per the description I have done everything. After running this command openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert…
Kousik
  • 21,485
  • 7
  • 36
  • 59
1
vote
2 answers

PyAPNs version 1.1.2 doesn’t have enhanced keyword?

I’m sure this is obvious, but I’m missing it. I’ve installed PyAPNs via pip: # pip install apns Then when I try to use the “enhanced” flag in APNs, it’s not there. # python Python 2.7.6 (default, Nov 11 2013, 18:34:29) [GCC 4.4.7 20120313 (Red…
Dylan
  • 2,315
  • 2
  • 20
  • 33
0
votes
0 answers

Pushing notification with image attachments using PyAPNS

I am trying to attach images in iOS push notifications using PyAPNS. How can I add this attachment into the apns payload structure? We can send the notification with title, subtitle, and body. class ApplePushNotification(object): """ class…
0
votes
1 answer

Apple Push Notification Service compatible with python 3

I wish to send push notifications to apple devices. I tried using PyAPNs but there is compatibility issue with python 3. Also a few other packages which I tried are not compatible with python 3. Can anyone suggest me any package that is compatible…
Naman Sharma
  • 179
  • 1
  • 1
  • 12
0
votes
1 answer

Sending push notification with pyapns with priority

I'm sending ios notifications through apns with the following code: from apns import APNs, Payload apns = APNs(cert_file='***.pem',key_file='***.pem') payload = Payload(alert=message, badge=1) apns.gateway_server.send_notification(token,…
tomermes
  • 22,950
  • 16
  • 43
  • 67
0
votes
1 answer

ios apns not sending consistently to devices

Good day people! I started having this problem last month when the registered devices on my app stopped receiving push notifications At first I realized that it was because Apple dropped SSL v3 support so I performed a git pull of the pyapns…
gdpaz
  • 51
  • 4
0
votes
1 answer

When APNS tokens fail, is it a must to repeat the remaining push notifications?

I'm sending 1-10 notifications at a time, sometimes one of the tokens fail, I'm guessing they fail when a user deletes the app (or other similar reasons), do I need to retry the remaining tokens/notifications for that batch? (I receive a "failed…
Kaan Soral
  • 1,589
  • 1
  • 15
  • 31
0
votes
1 answer

ssl.SSLError when sending Push message using PyAPNS

I've been trying to access the APNS in order to send push notifications to an iOS app I develop. I have created a development and production certificate requests and signed them on the Apple dev center: My certificates For each certificate…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562