ios - E_IAP_NOT_AVAILABLE in Expo React Native & UI Not Rendering in TestFlight - Issue with In-App Purchases - Stack Ov

I am experiencing issues with in-app purchases while using react-native-iap in an Expo React Native (Ma

I am experiencing issues with in-app purchases while using react-native-iap in an Expo React Native (Managed Workflow) project with TypeScript.

Issue Summary

  1. Development Mode (Simulator & Physical Device):

    -When the app initializes with withIAPContext, I immediately get this error: E_IAP_NOT_AVAILABLE

    -This prevents the purchase flow from starting and subscriptions from loading.

  2. TestFlight (Production Environment):

    -The SubscriptionsIOS.tsx component does not render at all.

    -No visible errors appear, but in-app purchases do not load, leaving a blank screen.

Steps to Reproduce

  1. Open the app on an iOS simulator or physical device.

  2. Navigate to the SubscriptionsIOS.tsx component where in-app purchases should be executed.

  3. The error E_IAP_NOT_AVAILABLE appears immediately.

  4. When testing in TestFlight, the app does not crash, but nothing renders in the SubscriptionsIOS.tsx component.

Expected Behavior

  1. The app should successfully initialize in-app purchases and display available subscriptions.

  2. The UI should render correctly in TestFlight.

What I Have Tried So Far

✅ Enabled In-App Purchases in Apple Developer and App Store Connect.

✅ Ensured the bundle identifier matches the one registered in App Store Connect.

✅ Tested with a Sandbox account.

✅ Verified my react-native-iap implementation.

✅ Properly restored transactions.

Project Information

Expo SDK: ~51.0.20

react-native-iap version: ~12.16.2

React Native version: 0.74.3

I would appreciate any help on how to resolve this issue or any debugging tips. Thank you in advance!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743768780a4503988.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信