{ iapPurchaseUpdatesLoading: any; iapPurchaseUpdatesError: any; iapPurchaseUpdates: any; }
useIapPurchaseUpdates hook should be called in your main screen component. This hook automatically invokes
getPurchaseUpdates API and populates states during main screen launch and App state transitions from BG - FG.
“iapPurchaseUpdates” state returned by this hook has unfulfilled and canceled consumable purchases.
Amazon recommends that you persist the returned PurchaseUpdates data and query the system only
for updates by calling the hook with reset flag being false.
This hook ensures to keep getting you latest purchase updates.
Parameters
purchaseUpdatesRequest
PurchaseUpdatesRequest Purchase Updates request parametersReturns
{ iapPurchaseUpdatesLoading: any; iapPurchaseUpdatesError: any; iapPurchaseUpdates: any; }
States and value of Purchase updates

