mobileRestorePurchases

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileRestorePurchases
Summary

Instructs the App Store or Marketplace to re-send notifications of previously completed purchases.

Introduced5.0.1
OSios, android
Platformsmobile
Example
if tDeviceFirstRun is true then
   mobileRestorePurchases
end if
RelatedCommand: mobilePurchaseSet, mobileDisablePurchaseUpdates, mobilePurchaseVerify, iphoneRequestProductDetails, mobilePurchaseSendRequest, mobilePurchaseConfirmDelivery, mobileEnablePurchaseUpdates, mobilePurchaseCreate
Function: mobilePurchaseState, mobilePurchaseError, mobileCanMakePurchase, mobilePurchaseGet, mobilePurchases
Message: purchaseStateUpdate
Description

Use the mobileRestorePurchases command to instruct the App Store or Marketplace to re-send notifications of previously completed purchases.

The mobileRestorePurchases command instructs the App Store or Marketplace to re-send notifications of previously completed purchases.

This would typically be called the first time an app is run after installation on a new device to restore any items bought through the app.