Reputation: 720
My app contains IAP and I want users to be able to install the app on a new device and recover those purchases. I don't have any type of login requirement so there is no backend to access to check for credentials and then restore IAP.
I know that on iOS it is possible to restore IAP simply by calling a specific function ([[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
).
Is there something similar in google play and amazon? If not, how could I restore IAP?
Upvotes: 1
Views: 546
Reputation: 579
From google play' official documentation: you need to call queryInventoryAsync(QueryInventoryFinishedListener)
method and handle the data in QueryInventoryFinishedListener
.
From Amazon's documentation: you need to call PurchasingService.getPurchaseUpdates()
method for retrieving users purchase history
Upvotes: 1