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

getProducts: Empty product array #170

Closed
guzza82 opened this issue May 24, 2018 · 9 comments
Closed

getProducts: Empty product array #170

guzza82 opened this issue May 24, 2018 · 9 comments
Labels
📱 iOS Related to iOS

Comments

@guzza82
Copy link

guzza82 commented May 24, 2018

Version of react-native-iap

the lastest version for now

Platforms you faced the error (IOS or Android or both?)

IOS

Expected behavior

Read and buy product

Actual behavior

After RNiap.prepare, I invoke the getProducts method on a static array of bundle ids associated with products already loaded and approved on iTunesConnect. The response is empty array, What could be the problem?

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

@hyochan hyochan added the 📱 iOS Related to iOS label May 24, 2018
@cliff
Copy link

cliff commented May 31, 2018

I had the same problem and I checked all the steps multiple times, in the end this fixed my problem:

  1. Use only the ProductID not the BundleID + ProductID for SKUs (instead of "com.example.myapp.product1" use just "product1")
  2. I had to submit the app and then "developer reject" it right after.

@younes200
Copy link

younes200 commented Jun 5, 2018

Same here for me, both ProductID and BundleID+ProductID not working. @cliff what do mean by "developer reject" it right after ? you app didn't pass the submission process ?

@JJMoon
Copy link
Contributor

JJMoon commented Jun 6, 2018

@younes200 'Developer reject' means you apply app (product) review (to Apple company in iTunesConnect) and reject it before the review. But, it is not necessary. I test without this process.
I guess you should check the IDs on iTunesConnect and strings in JS array.

@lc3t35
Copy link

lc3t35 commented Jun 15, 2018

@younes200 @guzza82 did you solve this issue ?

@dawidvdh
Copy link

Having the exact same issue, even having a in app purchase Product ID being: com.product.product.allitems and just using allitems for the sku did also not work.

@JJMoon
Copy link
Contributor

JJMoon commented Jun 22, 2018

@dawidvdh You should use the whole name com.product.product.allitems .
I hope you take a look at the product detail on App Store connect (iTunes connect).
Check the contract info and fill the right info. This function is well tested, and always have been tested. And testable in simulator.
Please refer to the example project, also.

@lc3t35
Copy link

lc3t35 commented Jun 22, 2018

I've closed this issue #198 that can give you some steps to success ;)

@dawidvdh
Copy link

Thanks @JJMoon realised that I was doing something dumb elsewhere (hadn't set u all the tax info on itunesconnect), all works on my end thats for the help.

@younes200
Copy link

Thanks @JJMoon. it seems that contact info was misssing, I'll re-check that after the Apple finish processing my infos.

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

No branches or pull requests

7 participants