服务器GCM推送通知在C#中的android [英] Server for GCM push notification to android in C#

查看:214
本文介绍了服务器GCM推送通知在C#中的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android应用程序,它利用推送通知服务,通过GCM。目前,我停留在创建服务器。由GCM文档中提供的指南是在java中,我不知道如何来实现。一段时间研究后,我发现GCMSharp在GitHub上,它使用C#

I am working on an android application which uses push notification service by GCM. Currently I am stuck at creating a server. The guides provided by the GCM documentation is in java which I have no idea how to implement. After researching for awhile, I found GCMSharp on github which uses C#

PushSharp - https://github.com/Redth/PushSharp

PushSharp - https://github.com/Redth/PushSharp

不过,截至目前,我是新来创建服务器,而且不知道如何开始。是保持倾听要求,根据得到的请求它引导到推动通知到客户手机GCM服务器实际上是一个Web服务?

But as of now, I am new to creating a server and have no idea how to get started. Is the server actually a web service that keeps listening to request and upon getting a request directs it to the GCM which pushes notification to the client phone?

如果是的话,我在一个web服务实现它,如WCF?

And if yes, do I implement it in a webservice such as WCF?

推荐答案

您可以按照教程。

是保持听请求的服务器实际上是一个Web服务   并在得到请求指示到其推动GCM   通知到客户手机?

Is the server actually a web service that keeps listening to request and upon getting a request directs it to the GCM which pushes notification to the client phone?

您并不需要听的请求。 GCM推直接推任何消息,该设备没有任何要求。欲了解更多信息,请阅读此文档

You don't need to listen to requests. GCM Push directly pushes any message to the device without any request. For more details, Read this documentation.

这篇关于服务器GCM推送通知在C#中的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆