- Home /
Google Play Services Authentication works only in Development Build?
I have the following flow in my Android game: Start in 'loader Scene' -> GPG Authentication -> PlayFab Authentication with GPG Token -> Load first 'play' scene.
When I build in Unity with the flag 'development build' set in the Build Settings Dialogue and run it on my phone, I get logged in fine and all works great. If I disable the flag and 'Build & Run' onto my Android phone, then it doesn't log in. The game just hangs on the 'loader Scene' forever and since I don't have logs, I don't know exactly what went wrong.
This is even before uploading it to Google - so the signing certificate I use is still the same (no GoogleSigning happened yet to screw this up) and since it's the same account and it worked on the dev version, I know my settings for the test account work also.
Has anybody else had a similiar issue? Is there some config file somewhere that I am not aware of that changes Google settings for a development build?
I stumbled across an Exception hidden in my log that hints at a problem in another SD$$anonymous$$ that might be softened in the development build.
Will investigate further....
Answer by quicksly · Sep 13, 2017 at 08:37 AM
Seems like my problem was unrelated to GPS in the end.
It turned out that my application had an exception because of a missing gameanalytics.jar that wasn't properly built into the game. Fiddling with the build settings resolved this and now it works fine for me.
However if you come across an issue like this, you want to check if your Google Play Service is released already! According to some sources it may cause problems. It wasn't for me in the beginning, so I did release it in the process. Now I cannot tell for sure if that was the issue. So please check that and maybe comment on this - for further generations - if it really is the release issue.
what did you do in the build settings? I have a basic sign in button and leaderboards but the sign in window doesnt even pop up when i released the game. It only pops up if i build it in development mode
Your answer
Follow this Question
Related Questions
Unity 5 - Google Play NO Authentication 1 Answer
Google Services work from APK but not from store 0 Answers
Google Play Games Services - authentication fails 4 Answers
Google Play Services authentication problem. Failing to sign in ! 6 Answers
Google Playgames sigin UI not appearing and not throwing any Error 1 Answer