Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenFeint with GameCenter really that easy?

I was reading this: http://www.openfeint.com/ofdeveloper/index.php/kb/article/000089, and it seemed to make out that the implementation of GameCenter with OpenFeint was as simple as adding one plist to the project (after setting up achievements / leaderboards). But is this really the case? I've just implemented this in my project now and can't see any signs of it working. Nor can I see the app in the GameCenter app.

Could it be because I'm writing a universal iPhone / iPad app? Even though the iPhone app is on iOS 4.1?

Can anyone help me out here??

Thanks

James

like image 818
ingh.am Avatar asked Oct 10 '10 21:10

ingh.am


2 Answers

Aside of just including a .plist you must also add

"[NSNumber numberWithBool:YES], OpenFeintSettingGameCenterEnabled,"

to your OpenFeint settings dictionary. It is in the link you mentioned but it's easy to miss and the reason i think you did miss it is you said that you only added "a .plist".

You can verify that GC works when you get the characteristic GC-"Welcome Username" notification when launching your game.

like image 106
Maciej Swic Avatar answered Oct 03 '22 20:10

Maciej Swic


Turns out that because the iPad was below 4.0 when I was doing this, GameCenter wouldn't work, even on the iPhone version.

Upgrade to Xcode 3.2.5 (iOS 4.2) and it will work!

like image 36
ingh.am Avatar answered Oct 03 '22 22:10

ingh.am