Android GCM doesn't work with wifi networks when 3G network is available

你。 提交于 2019-12-05 17:41:29

Well this should not be the case, I have an android app that receives GCM push notifications regardless it is connected via 3G or Wi-Fi.

What I would suggest to troubleshoot this problem:

  • When you send the push notification from the server make sure to NOT include delay_while_idle, so the notification get delivered right away. Also make sure you have set time_to_live to a reasonable value (default is 4 weeks)
  • Try to hold a Wi-Fi lock in your app
  • Test with different device and/or Android version (maybe it is a problem with certain hardware/API version)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!