Ronaldo De La Cruz
Ronaldo De La Cruz

Reputation: 85

Unknown error getting products react-native-iap

I have days trying to implement in app purchase in React Native without success. I was trying using In-app purchases from Expo and right now with react-native-iap and I'm facing this error: error code: E_UNKNOWN. error message: UNKNOWN_ERROR

Subscription file

enter image description here

Apple Connect Info

enter image description here

App.tsx file:

enter image description here

Upvotes: 4

Views: 4625

Answers (2)

Karan Champaneri
Karan Champaneri

Reputation: 915

You cannot test in app purchase in simulator. There is way to test in app purchase in simulator Using StoreKit we can test in app purchase in simulator please look at this

Upvotes: 1

Balalen
Balalen

Reputation: 498

This bug occurs on ios Simulator, after hours and hours of search and no solutions, what you need to do is Running the app on real device.

connect ios device to your computer and run it on the real device and you will see your in-app products

How it work

Upvotes: 4

Related Questions