我用下面的項目在我的項目能夠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