1. Hey! Guest! The 33rd GMC Jam will take place between May 23rd, 12:00 UTC (Friday noon) and May 27th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Android Google Play Services user "Not logged in"

Discussion in 'Programming' started by Toxic Tom, Sep 26, 2018.

  1. Toxic Tom

    Toxic Tom Member

    Joined:
    Aug 3, 2017
    Posts:
    30
    I am trying to user google play services in my app with achievement_login(), which is called on game start. This is the code in my Async - Social event:

    Code:
    if ds_map_exists(async_load, "id")
    {
        switch(async_load[? "id"])
        {
            case achievement_our_info:
                //player has just logged in
                global.PlayerName = async_load[? "name"];
                global.PlayerID = async_load[? "playerid"];
                show_message_async("GOOGLE SERVICES: User " + global.PlayerName + " with ID " + string(global.PlayerID) + " has logged in");
                break;
        }
    }
    
    The app appears to log in to Google Play Games as it shows the "Connecting to...", "Google Play Games" splash but global.PlayerName is always "Not logged in" and global.PlayerID is always -1.

    What am I doing wrong?
     
  2. Toxic Tom

    Toxic Tom Member

    Joined:
    Aug 3, 2017
    Posts:
    30
  3. Toxic Tom

    Toxic Tom Member

    Joined:
    Aug 3, 2017
    Posts:
    30
    pls help me
     
  4. Traversal

    Traversal Member

    Joined:
    May 1, 2017
    Posts:
    63
    @Toxic Tom I am having the same issue. Did you find a solution?
     
  5. Toxic Tom

    Toxic Tom Member

    Joined:
    Aug 3, 2017
    Posts:
    30
    Unfortunately not, just seems like a broken feature to me
     
  6. Traversal

    Traversal Member

    Joined:
    May 1, 2017
    Posts:
    63
    Hey @Toxic Tom I solved it on my end and it is working GREAT.
    Check at your google play console in the last menu entry (in english it might be called "publication or release"?)
    Go there and release it! Every change on achievemnt/leaderboard you will have to confirm/active in the menu entry "Test"!
     
  7. Toxic Tom

    Toxic Tom Member

    Joined:
    Aug 3, 2017
    Posts:
    30
    Thanks for the reply, I'm not sure which menu entry you mean on Google Play Console, could you send a screenshot please?
     
  8. Traversal

    Traversal Member

    Joined:
    May 1, 2017
    Posts:
    63
    Sure, @Toxic Tom check the last 2 options (left side menu!) and Publish in "TESTING" and "PUBLISHING"!

    [​IMG]
     
  9. Traversal

    Traversal Member

    Joined:
    May 1, 2017
    Posts:
    63

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