Unable to retrieve data from In App Purchase

I want to add in-app purchasing to my app, but I can't figure out what part of my workflow is wrong.

  1. I created a product for my app in iTunes Connect (the product ID is com.mycompany.products.***) and it's in "Ready to submit" status.

  2. I created a sandbox test user for this app.

  3. I connected to iTunes on a real device using the sandbox AppleID.

  4. I went back to XCode and added in-app purchasing to my app.

  5. I turned on developer mode on the real device and logged in as the sandbox user.

  6. I built the app and ran it on a real device (not the simulator).

  7. I tried to get product information (com.mycompany.products.***) but nothing was returned.

  8. In-app purchasing is registered in App Store Connect and the status is "Ready to submit".

The code only retrieves product information in a simple way, so I don't think there's a problem. inAppPurchase.getProducts(["com.mycompany.products.***"]).then(console.log).catch(console.error);

But it only returns an empty array.

What could be wrong?

Any help would be much appreciated.

Unable to retrieve data from In App Purchase
 
 
Q