android – 你能在Windows服务器上设置GCM吗?

android – 你能在Windows服务器上设置GCM吗?,第1张

概述我想使用 GCM (Google Cloud Messaging),并想知道是否可以在Windows Server(IIS)上设置它? 目前,我的Web服务都作为WCF服务托管在Windows服务器上.我想避免为GCM配备专用服务器. 而不是什么?连接到Internet的任何服务器都可以用作GCM消息的发送方.您的Android应用程序必须能够连接您的服务器才能将设备注册ID传递给它.并且您的服务 我想使用 GCM (Google Cloud Messaging),并想知道是否可以在windows Server(IIS)上设置它?

目前,我的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
feature,you must have an application server that meets the following
criteria:

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.
总结

以上是内存溢出为你收集整理的android – 你能在Windows服务器上设置GCM吗?全部内容,希望文章能够帮你解决android – 你能在Windows服务器上设置GCM吗?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1128826.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存