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.
|