I am following a simple process where I init the IAP system and upon receiving an “init” callback, I make a call to loadProducts after checking for “canLoadProducts”.
Everything works as expected on the first run-- the requested products are retrieved together with all their details and I am able to use those details to populate my “shop” UI.
The problem I am facing is that this only happens on the first run of the app on any device and subsequently, irrespective of whether the device is connected to a network or not, I continue to receive the same products and the init process goes through unhindered. So, for instance, if I revise the prices of the products on the store, my programme never returns the new prices.
Internally, everything seems to still work-- if I actually request to purchase an item, the native OS popup is shown with the live prices etc but the data returned by loadProducts NEVER changes.
This is also true if I uninstall the app and then reinstall it on the same device-- even without an internet connection, I get a callback for my loadProducts call and the original products are retrieved.
I have looked around on the forum and gone through the entire API but there’s nothing that looks to me like it could refresh the products table or prevent them from being fetched if the device is not online.
I’d appreciate if someone could point me to a possible solution or indicate if there’s something that I’ve missed out-- my code is quite simple-- init the store; receive a callback for a successful init; request for products to be loaded; populate a local table for the retrieved products which are returned in the callback.
Thanks in advance.