I am porting my iOS game to android and I am almost done but i have been stuck on this for a day and a half. None of my searches and research are coming up with anything. I would be very grateful if someone could help or tell me whats going on.
*Note: I am using the Prime31 plugin “Google Play Game Services” but I’m not sure it’s a problem with that.
I start up my game on my android device after the build and run(have also tried just build then opening it on the device) and it shows the “connecting to” google accounts page. But when i specify which user i want (doesn’t matter who I pick) and then press ok, it closes the screen and starts the “connecting to” process all over again. I am using the PlayGameServices.authenticate() in my Awake function on my splash screen so it only comes up once, but its like it keeps trying.
*Note: I have also just created a sign in button on the main menu and it does the same thing.
Everything is setup on the Google Developer console as well. I have also tried “logcat” but it doesn’t show anything that would be related to the google part.
Try a clean reimport of ALL your plugins and see if that helps. I had a similar issue where absolutely nothing was working on both Play Games and Admob but a clean reimport of ALL my plugins killed the bugs.
Also, try ditching the Prime31 plugin and instead opting for the stock Google Play Games Plugin for Unity. It can be found with a quick Google search and works perfectly.
Then, if this Prime31 thing helps with multiplats just use the #IF commands to make it platform specific.
I will try the reimport of the packages but I highly doubt that will fix it. And yeah I saw that google setup, I wish I had seen it a week ago before I bought the prime31 plugin, oh well.
My game is called “Dodge Drop Pop” currently its free on the iOS app store, but I am as you see, trying to get it to android. It a simple time killer game but it suffices so a first published game I believe.
You say everything is set up on the Google Console, but chances are that’s where you’re having your problem. Double check that your app Id is included in your Android manifest file (not just the manifest under Google play games, also use the prime31 dropdown to merge it into the main file) and that your SHA1 fingerprint for your linked app is correct.
I posted this question in the Prime31 support forums and Prime31 said its because the Google Sandbox Servers are down. But just incase i do have a quick question, if my SHA1 fingerprint was entered incorrectly how would i change it?
Ok so I recreated the whole app in the Google Developers console but it still does the pop up sign in whenever I call the Authenticate. This is frustrating.
I know thats whats supposed to happen but after choosing an account to play with the sign in process starts all over again for some reason. It rarely completes the process and works.
As for the Prime31 answer, I fully published the game and it does the same thing so the sandbox accounts can’t be the problem.
Some people have reported that you need to link your app twice (once with the debug fingerprint, and once with the release fingerprint) before it will work.
Calling authenticate should only attempt authentication once, unless you are calling it again when it fails.
Ok I just linked my Debug and my Release certificate and it still does the same thing.
I am only calling authenticate when I press my “sign in” button, but I have nothing to call it again if or when it fails, the user just has to press it again.
I just want to bump this hoping someone has some insight on whats going on. I see my game can get through and sign in but it happens around once every twenty or so times trying to sign in. This is literally the only thing left before I can publish it.