I have problem to showing leaderboard UI. The login process is running smoothly and I can see the user who logged in. And submitting new score is also running. I tried to find solution on the internet but nothing is working.
here are the logcats
09-18 10:48:30.292 7971-8011/? I/Unity: [Play Games Plugin DLL] 09/18/17 10:48:30 +07:00 DEBUG: Invoking user callback on game thread
(Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-18 10:48:30.292 7971-8011/? I/Unity: [Play Games Plugin DLL] 09/18/17 10:48:30 +07:00 DEBUG: Received UI callback: ERROR_UI_BUSY
(Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Same.
Leaderboards and Achievement screens do not load.
Using 0.9.4 with play-services version 11.2.2 for Firebase compatibility.
The first time I try to open leaderboards I see this:
D/NativeBridgeActivity(14023): Launching bridge activity: parent:com.unity3d.player.UnityPlayerActivity@369854b3 intent Intent { act=com.google.android.gms.games.VIEW_LEADERBOARDS dat=version:11220000 flg=0x4000000 pkg=com.google.android.play.games (has extras) }
Subsequent times I see this:
I/Unity (14023): [Play Games Plugin DLL] 09/18/17 1:58:09 -03:00 DEBUG: ShowLeaderboardUI, lbId= callback is System.Action`1[GooglePlayGames.BasicApi.UIStatus]
I/Unity (14023): [Play Games Plugin DLL] 09/18/17 1:58:10 -03:00 DEBUG: Showing UI Internal callback: ERROR_UI_BUSY
I/Unity (14023): [Play Games Plugin DLL] 09/18/17 1:58:10 -03:00 DEBUG: Invoking user callback on game thread
My problem was in the manifest. I'm using another distribution of this plugin that apparently is not configuring it properly. Created an empty project with version 0.9.40 and got what was missing:
<!--- Google Play Services -->
<meta-data android:name="com.google.android.gms.games.APP_ID"
android:value="\ 1234567890123" />
<meta-data android:name="com.google.android.gms.games.unityVersion"
android:value="\ 0.9.40" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity android:name="com.google.games.bridge.NativeBridgeActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
<!-- Required for Nearby Connections API -->
<meta-data android:name="com.google.android.gms.nearby.connection.SERVICE_ID"
android:value="" />
Hello , i already fix this , u can try add some lines to your androidmanifest.xml at the end of file
( Assets/GooglePlayGames/Plugins/Android/GooglePlayGamesManifest.plugin/androidmanifest.xml )
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" />
<application>
<!-- Required for Nearby Connections API -->
<meta-data android:name="com.google.android.gms.nearby.connection.SERVICE_ID"
android:value="" />
<!-- The space in these forces it to be interpreted as a string vs. int -->
<meta-data android:name="com.google.android.gms.games.APP_ID"
android:value="\ 106247102254" />
<!-- Keep track of which plugin is being used -->
<meta-data android:name="com.google.android.gms.games.unityVersion"
android:value="\ 0.9.41" />
<!-- Build time check to make sure play-services libraries are present -->
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity android:name="com.google.games.bridge.NativeBridgeActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
</application>
i found this by others user , i just re-write this , hope this help u !
Most helpful comment
Hello , i already fix this , u can try add some lines to your androidmanifest.xml at the end of file
( Assets/GooglePlayGames/Plugins/Android/GooglePlayGamesManifest.plugin/androidmanifest.xml )
android:versionCode="1"
android:versionName="1.0" >
i found this by others user , i just re-write this , hope this help u !