dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.78k stars 634 forks source link

Getting empty products #2452

Open puneetkansal04 opened 1 year ago

puneetkansal04 commented 1 year ago

const productIds = ['plan149];

RNIap.initConnection().then(output=>{ console.log('output',output) RNIap.getProducts({skus:productIds}).then(productName=>{ console.log('productName',productName) })

    });

I am using this function and app products also ready to submit state. As I am adding productIds array it is giving me empty array in the IOS. As I am not using this for android right now. But it is not working in App Store.

puneetkansal04 commented 1 year ago

@andresesfm Hi Andres Can you help in this if you can check it with the latest Version "react-native-iap": "^12.10.5", react-native:0.64

as I am using and getting products array as empty in the IOS.

andresesfm commented 1 year ago

Try sk2

puneetkansal04 commented 1 year ago

Hi @andresesfm sk2 also not worked still getting an empty array.

Ist way As I used it like this RNIap.setup({ storekitMode: 'STOREKIT2_MODE' });

2nd way Also tried with React native upgrade "react": "17.0.2", "react-native": "0.65.1",

Still getting empty array

AndreUskovMar commented 1 year ago

Faced the same problem today. Updating the version of react-native-iap didn't help.

zheoreh commented 1 year ago

Please make sure that you accepted an agreement for paid apps here https://appstoreconnect.apple.com/agreements/#/ before getting products

MikeAlvarado commented 1 year ago

Please make sure that you accepted an agreement for paid apps here https://appstoreconnect.apple.com/agreements/#/ before getting products

@zheoreh does this includes having approved the tax forms information or only accepting the agreement?

admdni commented 11 months ago

I see my project this problem :(