GameCenter Integration Docs

Apr 30, 2012 at 2:57 PM

Hi,

Can anyone give me feedback on these GameCenter docs:

http://www.jmawebtechnologies.com/company-blog/april-2012/gamecenter-integration-leaderboards-and-achievemen

Apr 30, 2012 at 3:47 PM

Looks good.  FYI -- i didn't have to upload a binary to get scores and achievements working.

Also, you might want to expand on how to submit 'fractional' achievements.  What I mean is that say your acheivement is "Play 100 Levels".  If the player has done 53 levels, you can submit that and the gamecenter will show "53%" complete for that achievement.

I wish I would have had this guide when I started.

Maybe next you can do IAP.  I just got that working yesterday and it was a royal pain in the ass.

Apr 30, 2012 at 4:04 PM

Hi,

OK, here is the article:

http://www.jmawebtechnologies.com/company-blog/april-2012/in-app-purchase-monogame-ios

I will add some code for fractional achievements.

Apr 30, 2012 at 4:19 PM
Edited Apr 30, 2012 at 4:20 PM

That's a solid start on IAP.   A couple of thoughts to add more detail:

1)  Go over some exact settings for bundleid, appid, and fully qualified iap product id.  I spent over a day getting 'invalid productid' back until I figured out exactly what needed to be passed.  In my case it turns out I needed to deinstall the app from my device and do a fresh install.   I got that tip from the comment s section of the original ObjC source code post:

http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/

 

2)  Instead of hardcoding '.99 cents', you need to get the product object back from the IAP manager and use it's localized currency.  In other markets, .99 isn't going to represent the correct price.

3)  A couple scenerios need to be gone over like how to retry store initialization should a network error occur on the first pass.  As a last resort, I display a message like "Itunes connectivity is unavailable.  Please ensure network connectivity and retry"

 

Anyways, this definitely would have saved me some time if I had it to begin with.

May 1, 2012 at 1:58 PM
Edited May 1, 2012 at 2:14 PM

Hi,

Please check the page again. I added that code. I am unsure how to do fractional achievements, so please e-mail me some code or a blog post and I'll add it.