简体   繁体   中英

How to control Google Clound Message from Web-service in php

I have a scenario as below figure. In which, I want to send a request from my phone to web-service (created by php). When the message is received, the web service will sent that message to Google clound Message. The GCM will respond a notification to my phone. 在此处输入图片说明

Hence, I have a question is how can i create a web-service to send a request to GMS when it receive a request from my phone. Note that my goal is that recived a push message from GCM. Thank you so much. If you have any source code reference for that task, please let me know

I'm assuming that step 2 occurs some time after, step 1 and thus cannot be fulfilled by a direct HTTP response.

Typical GCM implementation would handle your scenario. Have a look at the quickstart to get going.

Also you can send a notification message with GCM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM