Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Why can't I query available in-app purchases

$
0
0

I have a React Native Expo project. I'm using this library. - for in app payments on iOS.

The issue is, my query for available in-app purchases is returning nothing.

While the purchases can't be retrieved, I can't build any payments.

Notes:

  • I'm testing RN app through the Expo iOS client
  • In app purchases are ready to submit in Apple connect
  • App has all data complete in Apple connect, but is not submitted yet

Here is the code. It's copypaste from the GitHub documentation

 try {        await InAppPurchases.connectAsync();        const items = Platform.select({          ios: ["basic", "medium", "best"],          android: [],        });        // Retrieve product details        const getPurchasable = await InAppPurchases.getProductsAsync(items);        const { responseCode, results } = getPurchasable;

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>