Please provide the following:
- SDK Version: >=44.0.0-0 <45.0.0
- Platforms(Android/iOS/web/all): IOS
- Add the appropriate “Tag” based on what Expo library you have a question on.
I have two subscription groups:
- Level 1
- Level 2
In each group, I have 3 products:
- level_1_sub_4.99
- level_1_sub_6.99
- level_1_sub_9.99
- level_2_sub_4.99
- level_2_sub_6.99
- level_2_sub_9.99
Next, I fetch the products via:
try {
const { responseCode, results } = await InAppPurchases.getProductsAsync(
AppStoreProductList
);
if (responseCode === InAppPurchases.IAPResponseCode.OK) {
setItems(
results.sort((a, b) => a.priceAmountMicros > b.priceAmountMicros)
);
}
} catch (err) {
console.log(err);
setItems([]);
}
Here is my AppStoreProductList
for two product items:
export const AppStoreProductList = ["level_1_sub_4.99", "level_2_sub_9.99"];
When I console.log(items)
, it returns an array. Any idea what’s wrong?
> Blockquote