iOS gamecenter achievement popup disappears too quickly

We are currently implementing Game Center achievements in our iOS title using Unity’s built-in Social API.

When an achievement is unlocked by the player, the notification pop-up (which appears at the top of the screen) disappears very quickly. I think it’s possibly only showing for one or two frames (I would expect it should display for around a second, at least…).

We are calling GameCenterPlatform.ShowDefaultAchievementCompletionBanner(true), and using Social.ReportProgress() to report progress. The achievements do actually unlock, and we can see them in the AchievementsUI ( Social.ShowAchievementsUI() ), which works fine.

We are using Unity 4.0.1, XCode 4.6.

Any ideas of what we might be not be doing correctly? Has anyone else seen this happen?

do you have “Use Animated Autorotation” unchecked? (in PlayerSettings->Resolution and Presentation)
If so - we are aware of the bug and intend to fix it in 4.x.
As of now, you can change iPhone_View.mm yourself (it is in trampoline)
in OnUnityReady() function:
replace

to

in - (void)willRotateToInterfaceOrientation:
add

to the beginning, so it look like this

and in the very end of - (void)didRotateFromInterfaceOrientation:
add

*should be last line in that function.

EDIT: hello our forum software! Dont be scared of emoticons just copy paste :wink:

Great - thanks! We’ve ticked “Use Animated Autorotation”, and now it works perfectly! :slight_smile:

just a quick question… is this fixed already?