无法在Android / ios设备上接收推送通知

时间:2015-04-15 12:27:42

标签: push-notification apple-push-notifications ibm-mobilefirst

我在为MobileFirst Platform 6.3运行event source-based notifications sample project时遇到以下错误。

我没有收到任何推送通知到我的Android或ios设备。

MobileFirst Development Server控制台显示:

[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

1 个答案:

答案 0 :(得分:0)

您的网络配置很可能会阻止APNS服务器(Apple推送通知服务)所需的地址或端口。

验证以下内容是否可访问:

  • 沙盒服务器:
    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地址块已分配给Apple,因此您可以在防火墙规则中指定该范围