1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Android [Help] How can I remove unnecessary permissions from Google Play Services Extension?

Discussion in 'GameMaker Studio 2 Community Tech Support' started by inoptatus, Aug 13, 2019.

  1. inoptatus

    inoptatus Member

    Aug 13, 2019
    Hi guys,

    I'm trying to implement Google Play Services in my Android Game to use leaderboards.

    It is working, but when I try to sign-in in Google Play Services, a window appears that requests access to Google Play activities (which is fine) and also access to personal data like full name, gender and profile picture (which I don't want as it is not necessary for using leaderboards).

    So what I want is a window from Google Play Services that appears and only asks for access to Google Play activities and nothing else.

    I tried to modify GooglePlayServicesExtension.java from the Play Services Extension. I found the following code in it:

    // Initialise sign in client
    GoogleSignInOptions.Builder optionsBuilder = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN);
    I changed DEFAULT_SIGN_IN to DEFAULT_GAMES_SIGN_IN , which is the recommended sign-in option according to the Google Play games services documentation "Sign-in in Android Games".

    Now when I compile the game it starts and Google only asks for access to Google Play activities, but when I agree, the game crashes immediately, although the login works and when I start the game again I'm logged in successfully.

    Maybe somebody has an idea how to fix this problem that the game doesn't crash - that would be great! :)

    Also it would be interesting to know why the extension uses DEFAULT_SIGN_IN instead of DEFAULT_GAMES_SIGN_IN.

    I'm using GMS and the Google Play Services Extension 3.1.6.


    EDIT: I've added a screenshot. It's in German, but I hope it clarifies what I mean.

    Attached Files:

    Last edited: Aug 14, 2019

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice