目前,我的Web服务都作为WCF服务托管在windows服务器上.我想避免为GCM配备专用服务器.
解决方法 而不是什么?连接到Internet的任何服务器都可以用作GCM消息的发送方.您的AndroID应用程序必须能够连接您的服务器才能将设备注册ID传递给它.并且您的服务器必须能够将POST请求发送到https://androID.GoogleAPIs.com/gcm/send才能发送消息.或者如GCM Documentation中所述:
总结Before you can write clIEnt AndroID applications that use the GCM
Able to communicate with your clIEnt. Able to fire off httpS requests to the GCM server. Able to handle requests and resend them as needed,using exponential back-off. Able to store the API key and clIEnt registration IDs. The API key is included in the header of POST requests that send messages.
feature,you must have an application server that meets the following
criteria:
以上是内存溢出为你收集整理的android – 你能在Windows服务器上设置GCM吗?全部内容,希望文章能够帮你解决android – 你能在Windows服务器上设置GCM吗?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)