Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting empty products #2452

Open
puneetkansal04 opened this issue May 30, 2023 · 7 comments
Open

Getting empty products #2452

puneetkansal04 opened this issue May 30, 2023 · 7 comments

Comments

@puneetkansal04
Copy link

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
Copy link
Author

@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
Copy link
Contributor

Try sk2

@puneetkansal04
Copy link
Author

puneetkansal04 commented May 31, 2023

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
Copy link

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

@zheoreh
Copy link

zheoreh commented Jun 7, 2023

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

@MikeAlvarado
Copy link

MikeAlvarado commented Aug 10, 2023

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
Copy link

admdni commented Sep 25, 2023

I see my project this problem :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants