question

zerovnn avatar image
zerovnn asked

get all purchase history

I want request all purchase history for the current user and app. Data json is ENTITLED, used code demo PurchasingManager.initiatePurchaseUpdatesRequest(Offset.fromString(baseActivity.getSharedPreferences(baseActivity.getCurrentUser(), Context.MODE_PRIVATE).getString(OFFSET, Offset.BEGINNING.toString()))); not working.Help me, please. p/s: test on sanbox null
iap
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Dixith@Amazon avatar image
Dixith@Amazon answered
Thank you for your post. The initiatePurchaseUpdatesRequest is an important API call that enables developers to restore in-app purchases. A common use case for this method is when a customer buys in-app items on one device and then downloads the same app on another device, or when a customer re-installs the app after removing it from their device. In both scenarios, through theinitiatePurchaseUpdatesRequest()call, make past in-app purchases and restore those purchases to the correct state. Please mention more details about what error you are getting when you are using the above method. This would help us to investigate the issue further.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.