0

我已经通过“新项目”和“现有项目”选项多次浏览了推送指南(在 parse.com 上),但在我所有的测试中,我都无法收到通知 - 在我的手机或模拟器。仪表板显示推送通知已发送。LogCat 显示以下错误。我该如何解决这个问题?

11-22 05:43:17.619: E/com.parse.PushService(5060): could not connect to push server
11-22 05:43:17.619: E/com.parse.PushService(5060): java.net.SocketTimeoutException: Connection timed out
11-22 05:43:17.619: E/com.parse.PushService(5060):  at org.apache.harmony.luni.platform.OSNetworkSystem.connect(Native Method)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at dalvik.system.BlockGuard$WrappedNetworkSystem.connect(BlockGuard.java:357)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:204)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:437)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at java.net.Socket.connect(Socket.java:1002)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at com.parse.PushService$2.doInBackground(PushService.java:468)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at com.parse.PushService$2.doInBackground(PushService.java:428)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at com.parse.os.ParseAsyncTask$2.call(ParseAsyncTask.java:215)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
11-22 05:43:17.619: E/com.parse.PushService(5060):  at java.lang.Thread.run(Thread.java:1019)

我正在执行 Push Android 指南并遵循确切的说明。

4

2 回答 2

1

我可以建议你pushwoosh。它尝试了一个测试。跟随:Link1,然后是 Link2

于 2012-11-22T07:34:53.413 回答
1

在 parse.com 上转到您的应用程序,然后单击设置。应该有一个推送通知部分。启用“启用客户端推送?”。

于 2012-11-22T16:12:18.933 回答