Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send Notification #1

Open
JasonBian opened this issue Jan 13, 2014 · 1 comment
Open

Send Notification #1

JasonBian opened this issue Jan 13, 2014 · 1 comment
Assignees
Labels

Comments

@JasonBian
Copy link

发送apns通知时出现大量java.net.SocketTimeoutException: Read timed out

@ghost ghost assigned RamosLi Jan 13, 2014
@RamosLi
Copy link
Owner

RamosLi commented Jan 13, 2014

  1. 请确认一下apnsService的实例创建了多少个?创建一个就够了哈
  2. 检测下你的网络情况,APNS服务器在美国,国内跟它建立连接会慢一些,时而超时也是正常情况
  3. 如果你的网络情况比较差,连接美国就是比较慢,可以考虑把超时时间设置大一些: apnsConfig.setTimeout(), 现在默认值为10秒。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants