# InAppPurchaseRestore

## Description

Restores any managed purchases made on this platform. For example if a user purchased at item then reinstalled the app the app would return 0 for GetInAppPurchaseAvailable unless it was purchased again. Even though this wouldn't charge the user again for managed items, Apple require you to have a button that calls this function instead of making the user go through the purchase process again. After calling this command you can call GetInAppPurchaseAvailable. Currently this command is only supported on iOS. This command is unnecessary on Android and Amazon as it automatically restores in InAppPurchaseSetup

## Definition

InAppPurchaseRestore()

void agk::InAppPurchaseRestore()