我用下面的项目在我的项目能够APNS:APNS问题和Django
https://github.com/stephenmuss/django-ios-notifications
我能在我的生产应用精细发送和接收推送通知,但沙箱APNS有奇怪的问题,我无法解决。它一直不会连接到推送服务。当我手动_connect()
做的APNService
或FeedbackService
班,我得到以下错误:
File "/Users/MyUser/git/prod/django/ios_notifications/models.py", line 56, in _connect
self.connection.do_handshake()
Error: [('SSL routines', 'SSL3_READ_BYTES', 'sslv3 alert handshake failure')]
我试图重新创建APN证书的次数不断得到同样的错误。还有什么我失踪?
我使用的端点gateway.push.apple.com和gateway.sandbox.push.apple.com用于连接服务。还有什么我应该考虑这个?我已阅读以下内容:
Apns php error "Failed to connect to APNS: 110 Connection timed out."
Converting PKCS#12 certificate into PEM using OpenSSL
Error Using PHP for iPhone APNS
您是否找到答案?你如何使用TLS推送通知? – 2014-11-10 08:04:17
当您连接到Apple的服务器时,您可以选择要使用的上下文。查看我在上面使用的项目以获取更多指导。该项目的工作和生产就绪。 – KVISH 2014-11-10 14:01:52