Do GCM CCS Upstream Messages force a re-connection to the GCM network?

前端 未结 2 1054
-上瘾入骨i
-上瘾入骨i 2021-01-14 04:15

I am having some issues with GCM push notifications not arriving properly on Android devices. After days of research I found out, that Android Devices use a heartbeat to kee

相关标签:
2条回答
  • 2021-01-14 04:39

    You can read the full description of the problem here:

    https://productforums.google.com/forum/#!msg/nexus/fslYqYrULto/lU2D3Qe1mugJ

    In few words, the problem is the tcp idle timeout caused by some routers or mobile carriers.

    0 讨论(0)
  • 2021-01-14 04:51

    I tested this and it doesn't seem so. But you can force Android to send a regular notifications heartbeat by sending the following broadcast intents:

    com.google.android.intent.action.MCS_HEARTBEAT
    com.google.android.intent.action.GTALK_HEARTBEAT
    

    I got this from the Push Notification Fixer app on Google Play (I'm not the developer). https://play.google.com/store/apps/details?id=com.andqlimax.pushfixer.noroot

    0 讨论(0)
提交回复
热议问题