|
|
|
|
inAppRestorePurchases (Function) In french: inAppRestaureAchats Restores the purchases of non-consumable products previously performed by the user in an iOS application. Remark: This function is useful if the application was reinstalled by the user. We advise you to place the call to this function in a button accessible to the user. ArrayDeleteAll(garrReceived_iOS) HourglassNetwork(True) inAppRestorePurchases(RestoreProc) // ----------------------------------------- PROCÉDURE RestoreProc(bSuccess is boolean, ... ProductPurchased is inAppProduct, nQuantity is int) IF bSuccess THEN stReceived is ST_Received_iOS stReceived.nQuantity = nQuantity stReceived.prodProduct = ProductPurchased ArrayAdd(garrReceived_iOS, stReceived) // Refresh the Looper control LOOPDisplayReceived_iOS() HourglassNetwork(False) ELSE Error("Error while restoring the purchases: " + ErrorInfo()) END Syntax
inAppRestorePurchases(<WLanguage procedure>)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|