簡體   English   中英

IBM Worklight 6.0-Apple推送通知服務異常

[英]IBM Worklight 6.0 - Apple Push Notification Service Exception

所有,

我正在嘗試在Mac上運行Apple Push Notification。 但是我遇到了以下問題,需要一些幫助來弄清楚發生了什么。

我已經從Worklight的“入門”頁面實現了“推送通知”示例。 我可以在我的iPhone 4S上安裝該應用程序,並可以訂閱推送通知。 我可以在Worklight控制台中看到一個用戶和訂閱。 當我執行適配器過程以將通知推送到我的設備時,我看到一條消息,指出消息已發送給用戶:XXX。 但是,然后我看到以下錯誤消息:

[WARNING ] Failed to send message com.notnoop.apns.EnhancedApnsNotification@30f6ea2a... trying again
[WARNING ] Failed to retreive invalid devices
[WARNING ] Failed to retreive invalid devices
[WARNING ] Failed to retreive invalid devices
[ERROR   ] Couldn't get feedback connection
[ERROR   ] Unknown exception: java.net.UnknownHostException: feedback.sandbox.push.apple.com
[WARNING ] Failed to retreive invalid devices
[WARNING ] Failed to retreive invalid devices
[WARNING ] Failed to retreive invalid devices
[ERROR   ] Couldn't get feedback connection
[ERROR   ] Unknown exception: java.net.UnknownHostException: feedback.sandbox.push.apple.com   

在搜尋以找出上述問題的解決方案時,建議可能存在一些網絡問題。 我關閉了防火牆,並能夠ping通APNS服務器。

$ telnet 1-courier.push.apple.com 5223
Trying 17.149.32.15...
Connected to 1.courier-push-apple.com.akadns.net.
Escape character is '^]'.

$ telnet gateway.sandbox.push.apple.com 2195
Trying 17.149.34.65...
Connected to gateway.sandbox.push-apple.com.akadns.net.
Escape character is '^]'.

$ telnet gateway.push.apple.com 2195
Trying 17.172.233.147...
Connected to gateway.push-apple.com.akadns.net.
Escape character is '^]'.

我還嘗試允許以下端口用於APNS,但沒有運氣。

$ sudo ipfw add 0 allow tcp from any to any 2195
00100 allow ip from any to any proto tcp dst-port 2195
$ sudo ipfw add 0 allow tcp from any to any 5223
00200 allow tcp from any to any dst-port 5223
$ sudo ipfw add 0 allow tcp from any to any 2196
00300 allow tcp from any to any dst-port 2196
$ sudo ipfw add 0 allow tcp from any to any 443
00400 allow tcp from any to any dst-port 443

Worklight版本(Studio):V6.0 MacPro配置:防火牆已關閉Wi-fi路由器:防火牆已關閉iPhone 4S:在“設置”中啟用了通知

禁用防火牆不是問題……可以將其打開,但是請確保如Apple在本支持文檔中建議的那樣,允許屬於Apple的特定端口和IP地址。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM