Differences

This shows you the differences between the selected revision and the current
version of the page.


wmelite:iap_guide 2011/07/31 18:09 wmelite:iap_guide 2013/05/15 19:34 current
Line 1: Line 1:
-====== In app purchases guide ======+====== In app purchases guide (iOS only) ======
Starting with iOS 3.0, the users can purchase "products" directly from applications. This technology is called "in app purchases". These products can be of three types: Starting with iOS 3.0, the users can purchase "products" directly from applications. This technology is called "in app purchases". These products can be of three types:
Line 213: Line 213:
} }
</code> </code>
 +
===== Unlocking functionality ===== ===== Unlocking functionality =====
-Once the product is purchased, you should store this information somewhere locally (it would me impractical to connect to App Store all the time). WME Lite provides two convenience methods: Store.UnlockProduct() and Store.IsProductUnlocked(). Both accept a product ID as a parameter.+Once the product is purchased, you should store this information somewhere locally (it would be impractical to connect to App Store all the time). WME Lite provides two convenience methods: Store.UnlockProduct() and Store.IsProductUnlocked(). Both accept a product ID as a parameter.
When you are handling the "purchased" or "restored" transaction, you can call Store.UnlockProduct() to save the information about the purchase. In your game, just use the Store.IsProductUnlocked() to check if the user has purchased some functionality. If yes, let them continue playing, if not, display some purchase GUI and offer them to buy the functionality. When you are handling the "purchased" or "restored" transaction, you can call Store.UnlockProduct() to save the information about the purchase. In your game, just use the Store.IsProductUnlocked() to check if the user has purchased some functionality. If yes, let them continue playing, if not, display some purchase GUI and offer them to buy the functionality.
 
wmelite/iap_guide.1312128575.txt.gz · Last modified: 2011/07/31 18:09 by Mnemonic
Recent changes RSS feed Creative Commons License Driven by DokuWiki