deliver content through In App Purchase

Hi you all, using http://developer.coronalabs.com/code/super-simple-iap-1-line I setted up a store for my game.

Now the question is: once the user has bought something on my store, how can I unlock the content in the application?

Thanks :slight_smile: [import]uid: 76800 topic_id: 35334 reply_id: 335334[/import]

You’re not going to like this answer: “How ever you want to”.

There are dozens of strategies to do this. Some include downloading extra resources from a web server, other are simply setting a flag on a level saying it’s locked and on a successful purchase setting the flag to say it’s available (and saving the results to a local file for unlocking when the app is restarted).

A lot depends on what type of content you are unlocking and how your app is structured. Perhaps if you provide a bit more information about what it is your unlocking, the community could provide a more detailed and focused answer. [import]uid: 199310 topic_id: 35334 reply_id: 140480[/import]

You’re not going to like this answer: “How ever you want to”.

There are dozens of strategies to do this. Some include downloading extra resources from a web server, other are simply setting a flag on a level saying it’s locked and on a successful purchase setting the flag to say it’s available (and saving the results to a local file for unlocking when the app is restarted).

A lot depends on what type of content you are unlocking and how your app is structured. Perhaps if you provide a bit more information about what it is your unlocking, the community could provide a more detailed and focused answer. [import]uid: 199310 topic_id: 35334 reply_id: 140480[/import]