- Home /
Google Play Games Services wont work?
Hi,
Okay, so I have implemented GPGS into many games before with success, but now it doesnt seem to work. I load the game and it just wont do anything, no sign in dialog or anything. This is the code i use to sign in:
using UnityEngine;
using System.Collections;
using UnityEngine.SocialPlatforms;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
public class GpgsStart : MonoBehaviour {
// Use this for initialization
void Start () {
PlayGamesPlatform.Activate ();
Social.localUser.Authenticate((bool success) => {
if(!success)
{
PlayerPrefs.SetString("SignIn", "false");
Debug.Log("Couldn't Sign In");
}
});
}
// Update is called once per frame
void Update () {
}
}
I really cant see why it is not working, and am wondering if there is a silly mistake i have made or something i missed out. Anyone know what could be causing my probem?
Any help is greatly appreciated, thanks.
Your answer
Follow this Question
Related Questions
Google Play Services error 0 Answers
Where can I find the resource definition for google play games android configuration? 1 Answer
Unity android game not working in build. 0 Answers
Unity Google Play Service Plugin Social.localUser.Authenticate(…) App Crash 1 Answer
Google play Games plug in: failed to find candidate artifact for play-services-base 0 Answers