问题
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