cpp-android-basic-samples icon indicating copy to clipboard operation
cpp-android-basic-samples copied to clipboard

Calling Leaderboards().ShowAllUIBlocking() causes lifecycle issue with player profile.

Open stevenhaggerty opened this issue 10 years ago • 0 comments

Hi there,

Our app has implemented many of the game services function using the native API and it all works correctly and is on the store.

However we have an issue when the player checks out a leaderboard players profile:

  1. Head to leaderboards (we call GoogleGameServices->Leaderboards().ShowAllUIBlocking() )
  2. Pick a leaderboard
  3. Highlight a player on the leaderboard.
  4. Tap on that player (get profile)
  • App gets onPause and onStop calls.
  1. Back out of player profile
  2. Back out of player highlight,
  3. back out of leaderboards to the app
  • App does NOT get onRestart, onStart, onResume calls as this is a blocking call. Therefore the game sits there in an onStop state.

Is this expected behaviour? Using the non-blocking call fixes this, surely this renders the blocking call unusable?

Steve.

stevenhaggerty avatar Oct 09 '15 08:10 stevenhaggerty