Skip to content

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

@isotopeee

Description

@isotopeee

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions