Empty Array after using getSubscriptions or getProducts (IOS)
See original GitHub issueI’m currently having a problem when using this library related to the getProducts() and getSubscriptions() functions.
They are not loading not products nor subscriptions. All in-apps has ready to submit status. It’s more than 24h since in-apps configured and got ready to submit status.
In-App purchases capability enabled
Version of react-native-iap
I’m using version 6.0.6
upd. latest version (7.5.0) showing same behaviour
Version of react-native
I’m using version 0.66.1
Platforms you faced the error (IOS or Android or both?)
Faced this problem on IOS. Android works well.
Expected behavior
initConnection(): Showing true as a result.
getProducts(): Getting the list of all active products registered on App Store Connect
getSubscriptions(): Getting the list of all active subscriptions registered on App Store Connect
getProducts([id]) : Getting the requested product
getSubscriptions([id]): Getting the requested subscription
Actual behavior
initConnection(): Showing true as a result.
getProducts(): Getting an empty array
getSubscriptions(): Getting an empty array
getProducts([id]): Getting an empty array
getSubscriptions([id]): Getting an empty array
Tested environment (Emulator? Real Device?)
I’ve tested both: Emulator and real device (including TestFlight app version)
Steps to reproduce the behavior
for 6.0.6:
clearTransactionIOS()initConnection()flushFailedPurchasesCachedAsPendingAndroid()// used for androidgetSubscriptions([id])orgetProducts([id])// with or without id array
for 7.5.0:
initConnection()clearTransactionIOS()// also tested withoud this callgetSubscriptions([id])orgetProducts([id])
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Related StackOverflow Question
the problem was due to not submitted tax form
If you use iOS 15 update to the latest version (15.1), this worked for me