Skip to main content
Question

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

  • 29 April 2024
  • 1 reply
  • 26 views

Forum|alt.badge.img

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

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 430 replies
  • May 3, 2024

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: 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings