mobileStoreEnablePurchaseUpdates

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileStoreEnablePurchaseUpdates
Synonymsmobileenablepurchaseupdates
Summary

Enables the receipt of purchaseStateUpdate messages.

Introduced6.7
OSios, android
Platformsmobile
Example
on mouseUp
   mobileStoreEnablePurchaseUpdates
   mobileStoreSetProductType "com.runrev.sampleapp.nonconsumable" \
         , "inapp"
   mobileStoreMakePurchase "com.runrev.sampleapp.nonconsumable" \
         , "1", "This belongs to me"
end mouseUp
on mouseUp
   mobileStoreEnablePurchaseUpdates
   mobileStoreRestorePurchases
end mouseUp
RelatedCommand: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase
Function: mobileStoreProductProperty, mobileStorePurchasedProducts, mobileStorePurchaseError, mobileStoreCanMakePurchase
Message: purchaseStateUpdate, productRequestError, productDetailsReceived
Description

Use the mobileStoreEnablePurchaseUpdates command to enable the receipt of purchaseStateUpdate messages.

The command mobileStoreEnablePurchaseUpdates is used to enable the receipt of purchaseStateUpdate messages from the store.

Note: This command is necessary when interacting with Apple AppStore, however, we suggest using it for every store. Failure to use this command result in your purchase requests not being processed.