rxmarccall,
There are two main types of in-app purchases you can offer: consumable & non-consumable. Non-consumable products are the only type that you can use the restore functionality with. You use that for things like transforming a free ‘basic’ app into a paid ‘pro’ app. In that case you want to be able to provide the customer a way to restore his/her purchase should they have to reinstall the app (or upgrade their phone!).
Consumables, however, are tied to the device. Once purchased there is no way to restore the purchase. You have to be very careful how you track the purchase within your app.
Apple essentially only provides the billing infrastructure and nothing else. If you want to provide the user the ability to track consumables between devices (such as between an iPhone & iPad) you would have to provide the back-end server with accounts for each user to keep track of the balances. Likewise, if you want to provide downloadable content, you have to provide that from your own servers (see this page for an initial primer on downloading files: http://developer.anscamobile.com/reference/index/networkdownload). If your total including all potentially IAPed downloaded content is less than 20MB in size then you probably just want to include everything in the app package and unlock as purchased. If you basic content without the IAP content is less than 20 MB and the IAP content would push it over, then you may want seriously consider downloading any IAP content.
- Stephen
Kigra Software, Corona Ambasssador
* The are now some additional types of purchases such as subscriptions, etc.
** The 20 MB limit is because you have to be on a wi-fi connection to download apps larger that (at least that used to be the limit; not sure if they have upped it recently)
*** You will not be able to download & use *.lua files for two reasons: Corona actually compiles those files and does not provide a way to run a randomly downloaded file and Apple would not allow Corona apps in the store if it did! [import]uid: 4639 topic_id: 21233 reply_id: 86771[/import]