Upstream message to server app

后端 未结 3 1147
死守一世寂寞
死守一世寂寞 2021-01-07 05:01

I have successfuly send data from php server page to android client with JAXL..

I have read carefully the guide of Google Cloud Message Offical website.. For Upstrea

3条回答
  •  时光说笑
    2021-01-07 05:41

    1. As you may know, the connection between your server and GCM required sender-id and API key. Also when a client app wants to send an upstream message, it uses the same sender-id. So GCM knows to whom it should send the upstream data.

    2. There is no limit on your programming language, of course you can use PHP. You just have to maintain a persistent connection to GCM server.

    Don't care about some disconnections, note that Google will retry to send the upstream messages if your server was down, and didn't send an ACK back to GCM for a particular message.

提交回复
热议问题