ios - Implement multiple Consumable In-App Purchases -


right first of have tried kinds of tutorial show how purchase information , display tableview purchase work, plus non-consumable or 1 consumable. per image above, have created in xib , initiate consumable purchase when user taps button. not purchase info itunes connect display displaying offline.

i have created app id , app in itunes connect , have created 5 in-app purchases. (as per image below.) buttons call each of these. have suggestions?

i have no experiense in working consumable purchases, don't think there large difference. hope, you've read apple in-app purchasing programming guide: http://developer.apple.com/library/ios/documentation/networkinginternet/conceptual/storekitguide/introduction/introduction.html#//apple_ref/doc/uid/tp40008267-ch1-sw1

so, problem? if need show multiple products in 1 viewcontroller, need take somewhere list productidentifiers (strings, unique each product in app @ itunes) each product. can hardcode these productidentifiers, or, better, if using server, request them (because, if hardcode productidentifiers, , add/remove/edit product , it's productidentifier changes, you'll need publish new patch app).

to show actual information each product (price, name), need request it. creating skproductrequest (for each product) , adding paymentqueue. you'll price in response. if don't - don't show product in viewcontroller, because it's wrong product.

to show products offline can implement cache. may looks nice, make sense show "buy" button if offline?

probably there kind of cell each product in viewcontroller. in case, should not problem determine, productidentifier use, when user taps on of cells.

what after that? imho it's nicely described in apple's guide.

if need more or more specific questions - please, comment post, or edit question.

p.s. aware: in ios 7 there number of changes in working in-app purchases. anyway, can find information @ http://developer.apple.com/library/ .

p.p.s. check post: https://meta.stackexchange.com/questions/182266/how-much-research-effort-is-expected-of-stack-overflow-users/182380 . hope know, mean :) can try find @ #iphonedev @ irc.freenode.net , example. , search , search again. luck.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -