Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to fetch products (Consumable and Auto-renewable) on iOS 15.6.1 #29

Open
isotopeee opened this issue Oct 12, 2022 · 0 comments
Open

Comments

@isotopeee
Copy link

I'm unable to fetch products via the onFetchProducts(). Here's what the code looks like:

import InAppPurchase from '@class101/react-native-in-app-purchase';

...
InAppPurchase.onFetchProducts(async (products) => {
    console.log(products) // []
});
...

// not the real data but the PRODUCT_IDS are based on our App Store Connect data
const PRODUCT_IDS = [
  "rniap.sample.normal",
  "rniap.sample.consumable",
  "rniap.sample.subscribe",
];

// async event handler
const handleFetchProducts = async () => {
  await InAppPurchase.configure()

  InAppPurchase.fetchProducts(PRODUCT_IDS);
}

handleFetchProducts();

Screen Shot 2022-10-13 at 2 15 38 AM

Is iOS 15.6.1 supported?

@isotopeee isotopeee changed the title iOS | Unable to fetch products (Consumable and Auto-renewable) on iOS 15.6.1 Unable to fetch products (Consumable and Auto-renewable) on iOS 15.6.1 Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant