[tvOS] Still running in the background when Game Center achievements or leaderboards open

After calling Social.ShowLeaderboardUI or Social.ShowAchievementsUI, the Game Center window is displayed along with the leaderboard/achievement items. Scrolling around the list and clicking with the remote also scrolls around and clicks in your game - it’s not paused. Just tvOS Apple TV, working fine on iOS.

If anyone knows a quick workaround, most appreciated. Tried using OnApplicationFocus but doesn’t get called on this.

Just reported it as an issue via the Report a Bug menu. https://fogbugz.unity3d.com/default.asp?767633_5nmbp4hjjqkurl38

Thanks for the report. The bug fix will be made available in one of the next Unity releases.

Is the bugfix already released? I am on Unity 5.3.3f1 and struggle with the same issue. Alternatively, any workaround?

Tentatively we are planning to land the fix in 5.4.0p1. It may be delayed if something unexpected happens though.

So not in 5.4 on March 16th but might be in p1 a week or two later? Is the fix in the BETA 5.4.0B9 build?

@povilas Thanks for your information. Is there any workaround? I searched for a callback when game center is opened or closed (so I could lock the input then), but I couldnt find anything.

Was kinda hoping the fix would be included in 5.3.4 but nope, will there be a 5.3.4p1 ?

oh the fix is in 5.4p10 but for me anyway my games UI system is messed up so back to 5.3

It would be great if this fix could be included in 5.3 somehow. We are close to release and want to minimize the risk of updating to Unity 5.4.

make plenty of backups, With all the upgrades being installed when i put 5.3.3 back on Metal was broke again - switching to GLES2 and back to Metal fixed that little problem of black screen.

  • 1 for fix in 5.3 as I am ready for release pending the Achievement fix to TVos

Con confirm it’s fixed in the UNITY 5.4.0B10 BETA.

yes but need it in 5.3, just hoping a patch release gets dropped soon.

Unity confirmed that it will be in Unity 5.3.5.

1 Like

It’s in 5.3.4p1 - Download Archive

  • (767633) - iOS: Pause application on GameCenter dialogs on tvOS.

Also of GameCenter interest:

  • (777596) - iOS: Made Social.ShowLeaderboardUI to show the leaderboards tab, instead of achievements tab.

is it me or is shadows broken ? some scenes work some do not ?

Oh thank god the GameCenter fix is working

1 Like

I spoke too soon, calling Social.ShowLeaderboardUI opens the achievements view (and so does Social.ShowAchievementsUI).

Oh well, at least half of it is working now.

Could you please double-check that you were using 5.3.4p1 or newer? I’m pretty sure I saw the correct behavior during testing.

Re-checked and not working on tvOS, works fine on iOS, was working on the last release and patch versions. Same leaderboards and achievements group on both iOS and tvOS.

I put in debug.log’s to be 100% sure.
Code: http://gmtdev.com/downloads/UnityShowLA/mycode-with-debuglog.jpg
XCode trace confirmed no bugs in my code: http://gmtdev.com/downloads/UnityShowLA/xcode-trace.jpg
Unity 5.3.4.p1: http://gmtdev.com/downloads/UnityShowLA/unity_5_3_4_p1.jpg

I did notice there was an iOS bug fix, maybe the people who did this fix broke the tvOS version in the process (see 777596). Haven’t tried the beta. This was working fine in the last version (although the last version left the game running in the background which is now fixed).