C#中的谷歌云消息服务器端代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11543527/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 18:12:55  来源:igfitidea点击:

Google Cloud Messaging Server Side Code in C#

c#google-cloud-messaging

提问by Amey Bhatkar

I want to write implement 3rd party server for GCM (Google Cloud Messaging) for android using .Net. The official documentation gives guidelines for using it with servlet-api and gcm-server.jar ( Java helper for server side ).

我想使用 .Net 为 android 的 GCM(谷歌云消息传递)编写实现 3rd 方服务器。官方文档给出了将它与 servlet-api 和 gcm-server.jar(服务器端的 Java 助手)一起使用的指南。

Is there any equivalent for using it in C#?

在 C# 中使用它有什么等价物吗?

回答by Ani

If you're not keen on rewriting the whole thing, perhaps IKVM.NETwill help? It is a Java virtual machine for .NET and has tools for Java-.NET interoperability as well.

如果您不热衷于重写整个内容,也许IKVM.NET会有所帮助?它是用于 .NET 的 Java 虚拟机,并且还具有用于 Java-.NET 互操作性的工具。

Hope this helps!

希望这可以帮助!

回答by Robin Minto

The Google Cloud Messaging Client Library has been ported to C#: https://github.com/Redth/GCMSharp

Google Cloud Messaging 客户端库已移植到 C#:https: //github.com/Redth/GCMSharp

The same developer has produced a library for sending server-side push notifications to iOS, Android, Windows Phone, and Blackberry: https://github.com/Redth/PushSharp

同一位开发人员制作了一个用于向 iOS、Android、Windows Phone 和 Blackberry 发送服务器端推送通知的库:https: //github.com/Redth/PushSharp