the lastest version for now
IOS
Read and buy product
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?
Real Device
I had the same problem and I checked all the steps multiple times, in the end this fixed my problem:
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 ?
@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.
@younes200 @guzza82 did you solve this issue ?
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.
@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.
I've closed this issue https://github.com/dooboolab/react-native-iap/issues/198 that can give you some steps to success ;)
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.
Thanks @JJMoon. it seems that contact info was misssing, I'll re-check that after the Apple finish processing my infos.
Most helpful comment
I had the same problem and I checked all the steps multiple times, in the end this fixed my problem: