简体   繁体   English

通过Google Cloud Messaging向Android手机发送命令

[英]Send command to android phone via Google Cloud Messaging

I want to make a connection between chrome and android via Google Cloud Messaging. 我想通过Google Cloud Messaging在chrome和android之间建立连接。 Is there any way to open a certain app from chrome (I want to code it in PHP) on the android phone? 有什么办法可以在Android手机上从Chrome打开某个应用程序(我想用PHP编写代码)? or is there any alternative? 还是有其他选择?

Thanks. 谢谢。

Use the Web Push API in Chrome on mobile to have the connection between GCM and the Chrome browser on the mobile device. 在移动设备上的Chrome中使用Web Push API ,以在GCM和移动设备上的Chrome浏览器之间建立连接。

Now create an extension that connects the user on the desktop to the registration ID on the mobile device and call GCM as normal. 现在,创建一个扩展程序,将桌面上的用户连接到移动设备上的注册ID,然后照常调用GCM。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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