Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Game Center Achievement completion banner not showing up on iOS7

After completing Game Center achievement, achievement complete banner is not showing up on iOS7. GKAchievement.showsCompletionBanner is already set to YES. It works perfectly fine in iOS6 and iOS5. Anyone have any ideas to make this work? Thx.

This is the property in GKAchievement class I'm refering to.

@property(assign, NS_NONATOMIC_IOSONLY) BOOL showsCompletionBanner __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_5_0);             // A banner will be momentarily displayed after reporting a completed achievement
like image 652
Sohaib Avatar asked Sep 24 '13 02:09

Sohaib


People also ask

How do I see my Game Center Achievements IOS 11?

View your Game Center profile and friends' achievementsClick your name in the bottom-left corner, then click Game Center Profile near the top of the window. To see your friends' achievements, click Recently Played With.


1 Answers

It seems to be broken in iOS 7. Below is a fix that I use. You just need some condition to fill in the Title and Message. Hope this helps.

[GKNotificationBanner showBannerWithTitle:@"Achievement" message:@"Completed!" completionHandler:^{}];
like image 117
RegisteredUser Avatar answered Sep 19 '22 17:09

RegisteredUser