如何使GCM的servlet? [英] how to make a GCM servlet?

查看:144
本文介绍了如何使GCM的servlet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在关注本指南
和仍然没有得到它(IM很新的,整个Android的东西,我很抱歉)。

I've been following this guide and still dont get it (Im quite new to the whole android-stuff, Im sorry).

结果1.创建可以由Android应用程序被用来发送GCM收到的注册ID一个servlet(或其他服务器端的机制)。该应用程序可能还需要发送其他信息,如用户的电子邮件地址或用户名,以便服务器可以与用户拥有该设备的注册ID相关联。
 结果2。同样,创建用于注销注册ID一个servlet。


"1. Create a servlet (or other server-side mechanism) that can be used by the Android application to send the registration ID received by GCM . The application might also need to send other information—such as the user's email address or username—so that the server can associate the registration ID with the user owning the device.
2. Similarly, create a servlet used to unregister registration IDs."

我不认为这个指南是非常彻底的,但整体在这里我遇到了一些麻烦。是否有任何code-饼干在那里谁可以帮我?
我如何作出一个GCM的servlet?结果
预先感谢您!搜索结果PS。使用eclipse林

I dont think this guide is very thorough overall but right here I ran into some trouble. Is there any kind code-cracker out there who can help me? How do I make a "servlet" for GCM?
Thank you in advance!

PS. Im using eclipse

推荐答案

您或许应该看看的的 GCM演示应用程序页面,特别是设置服务器部分表示用于建立GCM服务器两种方法。我已经看到了使用谷歌应用程序引擎为他们的GCM服务器的其他几个GCM开发商在的点链接两

You should probably take a look at the GCM Demo Application page, specifically the Setting Up the Server section which shows two methods for setting up a GCM server. I have seen a few other GCM developers using Google App Engine for their GCM servers as detailed in point two of the link.

此外,还有商用解决方案在那里,如 AirBop (我碰巧帮助创建)的城市飞艇,和其他几个人。

There are also commercial solutions out there such as AirBop (which I happened to help create), Urban Airship, and a few others.

这篇关于如何使GCM的servlet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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