question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RNIap.getProducts doesn't get updated products details on Android

See original GitHub issue

Version of react-native-iap

2.3.6

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

If I update a manageable product (ie changing title, description, and / or price), I should get the updated product when I call RNIap.getProducts(productSkuList), and when I try to buy it, I should get a contextual menu with the updated fields

Actual behavior

RNIap.getProducts(productSkuList) always give me back the old product, BUT when I try to buy it, I see the updated product in the contextual menu

bug android

Tested environment (Emulator? Real Device?)

Real device, Samsung Galaxy S7

Steps to reproduce the behavior

As described in “Expected behavior”

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
raynor85commented, Oct 19, 2020

What I do to force the change is deleting the app and creating a new one, and if it is not enough, I disable and re enable google service from the phone settings.

On Mon, 19 Oct 2020 at 12:31, Andres Bordese notifications@github.com wrote:

For anyone is reading this in the future it was a caching issue, it took around 2 hours to reflect the changes made to the iap item on the app.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dooboolab/react-native-iap/issues/284#issuecomment-712095075, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMMH5LYSV5KTJFYO7AZQ2TSLQPS5ANCNFSM4F3COL3A .

1reaction
andrulicommented, Oct 19, 2020

For anyone reading this in the future it was a caching issue, it took around 2 hours to reflect the changes made to the iap item on the app.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RNIap.getProducts(itemSku) returns empty array
I have been following along with this tutorial, but run into problems when I get to RNIap.prepare() . My app was using the...
Read more >
How to use the react-native-iap.getProducts function in ...
To help you get started, we've selected a few react-native-iap.getProducts examples ... async componentDidMount() { try { const products = await RNIap.
Read more >
react-native-iap - npm
Android iap is implemented with iap version 3 which is currently recent. ... To get a list of valid items, call getProducts() ....
Read more >
Cannot get array of products / subscriptions #651
getProducts and RNIap.getSubscriptions always return empty arrays. Tested environment (Emulator? Real Device?) iOS simulator, Android emulator and Android real ...
Read more >
Implementing Auto Renewal Subscription in React Native
So here I am using Flatlist to render the product info I have created in above steps and accessed it through RNIap.getProducts(itemSkus) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found