未去precated GCM的例子吗? [英] GCM example that isn't deprecated?

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

问题描述

我有一个GCM例如所有的设置和它的作品不错,但它似乎是去precated。我试图寻找任何像样的例子,是不是pcated,这样我可以我的老code。至少转化为新的GCM版本德$ P $。问题是,对于谷歌为例,他们给这里他们只展示一些基本的东西,大零件缺少那些曾经需要。当我看到他们的参考.MyIntentService他们不给任何参考的问题进一步加强。

I have a GCM example all setup and it works fine but it seems to be deprecated. I have attempted to look for any decent example that is not deprecated so that I can at least translate my old code to the new GCM version. The problem is that for the Google example that they give here they only show some of the basic things, with large parts missing that were once required. The issue furthers when I see them reference .MyIntentService which they do not give any reference.

推荐答案

此示例应用程序已经更新到新的 Google云端通讯的API。在包括几类,都workalikes旧的API,以尽量减少从旧的API一个移动所需的更改次数。

This sample application has been updated to the new GoogleCloudMessaging APIs. In includes a few classes that are workalikes to the old API, to try to reduce the number of changes needed to move from the old API to the one.

注意,旧的API仍然有效,AFAIK。

Note that the old API still works, AFAIK.

此外,FWIW,这里的同一样本的原始版本,使用原来的API。

Also, FWIW, here's the original version of the same sample, using the original API.

这篇关于未去precated GCM的例子吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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