Question

Do I have to archive iOS app before products show up?

  • 29 April 2024
  • 1 reply
  • 21 views

Badge
  • New Member
  • 0 replies

Neither Purchases.getCustomerInfo or Purchases.getProducts display the products.
I did the Entitlements and Products on App Store Connect first and then imported them so I know the names are correct. My only assumption now is that I am required to upload the archive build to App Store Connect before this will work maybe.

async subscriptionStatus() {
    try {
      const customerInfo = await Purchases.getCustomerInfo();
      console.log('customerInfo ', customerInfo);
    } catch (error) {
      console.log('customerInfo error ', error); 
    }

    try {
      const productIds = ['enterprise_sub_v2', 'professional_sub_v2', 'starter_sub_v2'];
      const products = await Purchases.getProducts({
        productIdentifiers: productIds,
        type: PRODUCT_CATEGORY.SUBSCRIPTION,
      });
        console.log('products ', products);
    } catch (error) {
      console.log('products error ', error); 
    }
  }
  
  async restorePurchases() {
    try {
      const customerInfo = await Purchases.restorePurchases();
      console.log('restorePurchases customerInfo ', customerInfo);     
    } catch (error) {
      console.log('restorePurchases error ', error);     
    }
  }


This post has been closed for comments

1 reply

Userlevel 4
Badge +8

Hi, you do not need to archive your app first. It sounds like this could be a configuration/empty offerings error you are getting. Can you make sure that your paid applications agreement and any other forms are signed? We also have a troubleshooting guide on this here: