我如何使用的谷歌播放服务的旧版本? [英] How can i use older version of google play services?

查看:258
本文介绍了我如何使用的谷歌播放服务的旧版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是谷歌云通信通过谷歌播放服务。这个事情是它只能在设备与播放服务安装的最后一个版本,在剩余的设备,我需要显示一个对话框,要求用户发送到谷歌播放安装新版本魔女我真的不想做!

那么,如何避免这种情况?我试图用播放服务的旧版本(让2年前说的),以确保广大我的用户并不需要更新,但它似乎与档次和Android SDK中是不可能的,因为它已经被删除旧版本!所以我该怎么做?有没有什么办法可以使用​​旧版本?如果做找到一种方法,使用的是旧版本的新版本与旧一种相容性?

我不想强迫我的用户更新,因为

I'm using Google Cloud messaging through google play services. The things is it only works on the devices with last version of play services installed, in remaining devices i need to show a dialog to send user to google play to install new version witch i really don't want to do!

So how can i avoid this?! I'm trying to use an older version of play services (lets say from 2 years ago) to insure majority of my users don't need to update but it seems impossible with grade and android sdk since it already deleted older versions! So what should i do? Is there any way to use older versions?! and if do find a way to use an older version are newer versions compatible with older one?

I don't want to force my users to update because

  • GCM是没有必要我的应用程序,虽然我喜欢它!

  • GCM it's not essential to my app although i like to have it!

这是30 MB以上的女巫是很多第三世界国家是我的用户。

It's over 30 MB witch is a lot in third world countries were my users are.

推荐答案

不幸的是谷歌云消息传递只添加到7.5版的播放服务API,这是2015年五月底公布(见的这个Android开发者博客帖子)。

Unfortunately Google Cloud Messaging was only added to the Play Services API in version 7.5, which was released end of May 2015 (see this Android Developers Blog post).

所以,如果你能找到的V7.5 API的复印件(请参阅<一href="http://stackoverflow.com/questions/33793508/reliable-source-for-older-releases-of-google-play-services-api?noredirect=1#comment55353843_33793508">my就在这里),或者如果上述建议通过@Babak是安全的(仍然在调查那一个......,你只能去到7.5.0你失去GCM支持之前)的问题,你可能能够获得几个月的时间,但它可能不会产生巨大的变化......

So, if you manage to find a copy of the v7.5 API (see my question regarding that here) or if the suggestion above by @Babak is safe (still investigating that one... and you can only go down to 7.5.0 before you lose GCM support), you might be able to gain a few months, but it will likely not make a huge difference...

其实,我只注意到你的问题也张贴五月底...所以你可能将无法获得任何东西。但是你可能减少支持你移动到一个新的API版本晚!

Actually, I just noticed that your question was also posted end of May... So you probably won't be able to gain anything. But you may reduce support of you move to a new API version later!

这篇关于我如何使用的谷歌播放服务的旧版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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