How to make google play games optional?

我与影子孤独终老i 提交于 2019-12-23 02:52:20

问题


I am integrating Google Play Games with my Android game. During startup, if a user doesn't have Google Play Games, it shows a dialog with:

This app requires the latest version of Google play games.

Is there a way to make it optional? I would like users to see a dialog where they have the option to install it. But it shouldn't explicitly say required, since it isn't.


回答1:


I integrated a check to test whether or not Google Play Services is installed and only start the service if it is available for the user (https://stackoverflow.com/a/19955415/5437864).

Users with older versions, like 2.3, without Play Services, can still use the app and will not get notified. Otherwise, they will be notified to install Google Play Games. But if they press cancel, the game still continues without it.



来源:https://stackoverflow.com/questions/35210370/how-to-make-google-play-games-optional

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!