^2.4.7
0.59.4
iOS
I expect getProducts to return an array of available purchases.
The returned device is empty.
Both.
yield RNIap.prepare()
const products = yield RNIap.getProducts(iapBundleIds(content))
console.log(iapBundleIds(content))
// ["org.truthordrink.TruthOrDrink.pack1", "org.truthordrink.TruthOrDrink.pack2", "org.truthordrink.TruthOrDrink.pack3"]
console.log(products)
// []
The above code in the same xcode project works correctly using:
"react-native": "0.56.0",
"react-native-iap": "^2.4.0-beta6"
There are several issues related to this which are already closed. Please follow that and this should be working.
Only one i could find that remotely matched mine was #340.
For me, the module is working as expected in react-native 0.56.0, but not react-native 0.59.4, can't find any ticket related to that. If you could point me to a ticket like that it would be very helpful.
I'm just gonna roll with 0.56.0 for now, but you should know that the module is not working in 0.59.4.
Same problem here
Same here
I'm seeing the same. Are there any plans to address what seems like a confirmed issue with 0.59.4?
Why is this issue even closed? getProducts returns empty array in react-native 0.59.8 as well.
@hyochan: per your above comment that presumably resulted in this issue being closed, please kindly let us know what issues this one duplicates.
This is the only library of its kind that I know of, AND it is not working in current versions of RN. It would be great to get a better sense of what the issue is so the community can work towards getting it resolved. We need this library!
Related #407
I solved it! I am using these versions,
react-native-iap: ^4.3.0
react-native: 0.60.5
just do it like this
const itemSkus = Platform.select({
ios: [
'100coins' // just remove bundle id from product id
],
android: [
'100coins' // just remove bundle id from product id
]
});
Most helpful comment
Only one i could find that remotely matched mine was #340.
For me, the module is working as expected in react-native 0.56.0, but not react-native 0.59.4, can't find any ticket related to that. If you could point me to a ticket like that it would be very helpful.
I'm just gonna roll with 0.56.0 for now, but you should know that the module is not working in 0.59.4.