0

我在爲MobileFirst Platform 6.3運行event source-based notifications sample project時遇到以下錯誤。無法在android/ios設備上接收推送通知

我沒有收到任何推送通知給我的android或ios設備。

MobileFirst開發服務器控制檯顯示:

[ERROR ] submitNotification >> userId :: Raj, text :: Welcome, Eager 
to Have Engagement with you [project PushNotifications] 
[ERROR ] B4 notifying============{"APNS":{"badge":1,"alert":"Welcome, Eager to Have Engagement with you","payload":{"custom":"data"},"sound":"","actionKey":null},"GCM":{"alert":"Welcome, 
Eager to Have Engagement with you","badge":1,"payload":{"custom":"data"}},"SMS":{"text":"Welcome, Eager to Have Engagement with 
you"},"MPNS":{"raw":{"payload":{"custom":"data"}},"toast":null,"tile":{"title":"Welcome, 
Eager to Have Engagement with you","count":1}}} [project 
PushNotifications] 
[ERROR ] Notified to device======================={"userId":"Raj","state":{}} [project 
PushNotifications] 
[ERROR ] Couldn't connect to APNS server Connection timed out: connect 

回答

0

您的網絡配置極有可能阻斷由APNS服務器所需的地址或端口(蘋果推送通知服務)等等。

驗證以下是訪問:

  • 沙盒服務器:
    gateway.sandbox.push.apple.com:2195
    feedback.sandbox.push.apple.com:2196

  • 生產服務器:
    gateway.push.apple.com:2195
    Feedback.push.apple.com:2196

  • 1-courier.push.apple.com 5223

  • 整個17.0.0.0/8地址塊分配給蘋果公司,這樣你就可以在你的防火牆規則規定範圍

相關問題