Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
smems

Junior Member
Registered:
Posts: 20
Reply with quote  #1 

Hello again. I'm sorry for posting so much.

My problem is that I used google play services in my android game to show leaderboards and achievements. The leaderboards keep loading without displaying anything. The actual loading screen from play services appear and it just keeps loading. The thing is, sometimes the leaderboards work fine but most of the times they just keep loading. I have set up evrything correctly on the google developer console. 

This is the degub log from logcat:

Quote:

I/ActivityManager( 1172): START u0 {act=com.google.android.gms.games.VIEW_LEADERBOARDS dat=version:8487000 flg=0x4000000 pkg=com.google.android.play.games cmp=com.google.android.play.games/com.google.android.gms.games.ui.client.leaderboards.ClientLeaderboardListActivity (has extras)} from uid 10188 on display 0

W/ActivityManager( 1172): getRunningAppProcesses: caller 10188 does not hold REAL_GET_TASKS; limiting output

W/ActivityManager( 1172): getRunningAppProcesses: caller 10188 does not hold REAL_GET_TASKS; limiting output

W/ActivityManager( 1172): getRunningAppProcesses: caller 10188 does not hold REAL_GET_TASKS; limiting output

W/ActivityManager( 1172): getRunningAppProcesses: caller 10188 does not hold REAL_GET_TASKS; limiting output

W/ActivityManager( 1172): getRunningAppProcesses: caller 10072 does not hold REAL_GET_TASKS; limiting output

W/ActivityManager( 1172): getRunningAppProcesses: caller 10072 does not hold REAL_GET_TASKS; limiting output

I/ActivityManager( 1172): Displayed com.google.android.play.games/com.google.android.gms.games.ui.client.leaderboards.ClientLeaderboardListActivity: +176ms (total +242ms)



Does anyone know how to fix this? Thank you

0
Martin

Avatar / Picture

Administrator
Registered:
Posts: 2,230
Reply with quote  #2 
Hey Smems. It's ok about the posts, thats what the forum is here for [smile]

Sorry I can't help you with the code problem. I've never seen this before and we only implemented google play leaderboards in our game one time. The only suggestions I can give are:

- Make sure you have a stable internet connection. A slow one could be causing the error.
- Try connecting to the US / UK internet through a proxy or VPN service.
- Have you updated to the latest google play SDK?
- Make sure you are not trying to call the 'ShowLeaderboard()' function from within an Update() loop or repeated function call.

I hope this helps a little. Let us know if you find the solution.

Martin
0
smems

Junior Member
Registered:
Posts: 20
Reply with quote  #3 

Hello,

It seems that it was Google's fault. Without changing the code, sometimes the leaderboard would work and 5 minutes later it wouldn't work. Now that more than 200 people have downloaded my game it seems that the problem doesn't exist.

I think  Google waits for enough people to join the leaderboards to make the loading consistent. I checked through the adb debugger and every time the request was sent to google correctly but most of the times it just wouldn't load. 

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.