playgameservices / cpp-android-basic-samples

Sample games using the Google Play Games C++ SDK
303 stars 131 forks source link

Achievements().ShowAllUIBlocking() doesn't return control to my native activity (Android 11) #69

Closed Spud6703 closed 2 years ago

Spud6703 commented 2 years ago

I've just started implementing the 3.1.0 C++ SDK into my game which built on top of the native-activity sample code. It signs into Google Play Services okay and I can show the Achievements UI using game_services->Achievements().ShowAllUIBlocking(). However, when I swipe the UI screen downwards to close it on my two Android 11 devices, my game code doesn't wake up again. I've put a breakpoint right after ShowAllUIBlocking(); and it doesn't hit. I don't have any older Android devices that I can test on right now. Is this an Android 11 problem or have I just not implemented something correctly? Also is anyone actively updating the C++ SDK as I don't want to spend time implementing it if bugs like this aren't going to get fixed ? It looks like the 3.1.0 version was released 2 years ago !

This happens with Leaderboards too. When the LeaderboardUI appears, onPause is called in my NativeActivity as expected, but when I tap on the Back arrow at the top left of the leaderboard UI, the leaderboard disappears but onResume isn't called in my NativeActivity.