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:
    29
    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:
    29
  3. Toxic Tom

    Toxic Tom Member

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

    Traversal Member

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

    Toxic Tom Member

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

    Traversal Member

    Joined:
    May 1, 2017
    Posts:
    60
    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"!
     

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