本文介绍了GCM为gettoken()发送java.io.IOException异常:超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实现推送通知,但我收到TIMEOUT异常调用时为gettoken。

I am implementing push notifications, but I receive TIMEOUT exception when calling getToken.

我这里设置GCM 。

There are several SO questions that address this, but the one that helped me out was this one.

我关掉WiFi和使用我的手机上4G的连接,并将其与两个 gcm_defaultSenderId 的工作和我自己的发件人ID。

I turned off WiFi and used a 4G connection on my phone and it worked with both the gcm_defaultSenderId and my own sender ID.

这篇关于GCM为gettoken()发送java.io.IOException异常:超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 05:23
查看更多