I am trying to get a django application to send push notifications to an iOS device running this service’s iOS application. I am trying to use pyapns to send notifications. But I can not connect it to the Apple notification server.
The service is mostly running, this is the last thing I want to get before I exit the beta. You can visit http://pagemove.se/ to read about the application.
Here is the log:
Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 75, in wrapper return func(*a, **kw) File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 67, in wrapper return func(*a, **kw) File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 97, in notify return _xmlrpc_thread(*f_args) File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 127, in _xmlrpc_thread errback(e) File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 65, in errback_wrapper errback(e) # not an instance of UnknownAppID - nothing we can do here File "/usr/local/lib/python2.7/dist-packages/pyapns/client.py", line 55, in errback raise e xmlrpclib.Fault:
Has anyone had this problem? Could this be with a .pem file? or setting up an ubuntu server? Can I forget to open some ports in the router?
Edit
I checked the test if the ports for apns are open. I did
telnet gateway.sandbox.push.apple.com 2195
and received
Trying 17.149.34.65...
Connected to gateway.sandbox.push-apple.com.akadns.net.
Escape character is '^]'.
, .