简体   繁体   English

通过php从设备到第三方服务器的GCM上游数据

[英]GCM upstream data from device to 3rd party Server via php

I found links GCM with PHP (Google Cloud Messaging) or http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ , both explain how to downstream data from 3rd party server to device(s) using cURL. 我发现GCM与PHP(Google Cloud Messaging)http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/的链接解释如何使用cURL将数据从第三方服务器下游传输到设备。 But can anyone give me one example of how to upstream data from device to 3rd party server via php. 但是谁能给我一个例子,说明如何通过php将数据从设备上游上传到第三方服务器。 Android provides us with both java and python(XMPP). Android为我们提供了java和python(XMPP)。

因为我的主要任务是将本地数据库与远程数据库同步,所以使用SyncAdapter http://developer.android.com/training/sync-adapters/creating-sync-adapter.html是比GCM更好的选择

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

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