Hi. I'm trying to figure out the best way to restore entitlements, if a person purchased the IAP, then deleted the app, then purchased the IAP again. I don't see how to get back which entitlements were purchased. Perhaps I could use somehow save the requestId or receipt, but that would have been deleted when the app is deleted correct?
Entitled content is available anywhere the customer is logged into the Amazon Client. The entitled content does not expire. Customers can purchase entitled content one time. Once purchased, the entitled content is granted to the customer's Amazon account. You should always make call to getPurchaseUpdatesRequest() whenever the app starts. When you re-launch or uninstall and re-install your app, you can check for valid entitlements using the receipts you got from the API. On a successful response, a response object (PurchaseUpdateResponse) is passed which contains the request id, request status, a set of previously purchased receipts, a set of revoked SKUs, and the next offset is applicable. If a user download your app on another device or uninstall and re-install your app, this call is used to sync up this device with all users purchases. You can find more information at the following link:
Hi Regularstormy, In Unity, the initiatePurchaseUpdatesRequest function is automatically called by the AmazonIAPPlugin.class's implementation of onSDKAvailable. You do not need to take further action to ensure that this method is called aside from implementing the Unity IAP plugin and calling a itemDataRequest in order to register the receiver.