playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.47k stars 966 forks source link

Android 8 sign in fails when using EnableHidePopups #1983

Closed jayspringfield closed 5 years ago

jayspringfield commented 7 years ago

Play Games sign-in fails, but only on Android 8 and only when we hide the Games popups using the following method:

PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().EnableHidePopups().Build();
PlayGamesPlatform.InitializeInstance(config);

If I remove the EnableHidePopups method, it works as expected. If not, the sign-in fails with this error:

E/GamesNativeSDK: Exception in com/google/android/gms/common/api/GoogleApiClient$Builder.build: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference.
E/GamesNativeSDK: Failed to create GoogleApiClient from builder.

I tried to dig a little further but couldn't come up with anything. Does anyone have any insight into why this would be?

olehkuznetsov commented 5 years ago

Should be fixed in 0.9.55