React-native-iap: getProducts: Empty product array

Created on 24 May 2018  路  9Comments  路  Source: dooboolab/react-native-iap

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

馃摫 iOS

Most helpful comment

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.

All 9 comments

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.

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.

Was this page helpful?
0 / 5 - 0 ratings