Hi,
getProductsAsync() returns an empty array on my iPhone (I’m using Xcode to deploy directly to my iPhone XS).
await InAppPurchases.connectAsync();
const items = ['monthly'];
const { responseCode, results } = await InAppPurchases.getProductsAsync(items);
if (responseCode === InAppPurchases.IAPResponseCode.OK) {
setItemsLength(results.length.toString());
}
On screen I’m rendering {itemsLength}
, which returns 0
.
On App Store Connect I have a subscription with product ID: monthly
and is Ready to Submit
Expo SDK 40
Any ideas?
Thanks