Weird behavior with getProductsForSale()
See original GitHub issueHi all,
I’m running into an issue where when I call:
Iaphub.getProductsForSale()
I correctly get a network call that has the products, however the function returns an empty array. I have published a listing, not sure why im getting an empty array when i do see the product in the network call that this library is performing.
Please see screenshot below.
P.S: Interestingly, this library performs two calls (not sure why). Here’s the second which responds with nothing:
Any help is appreciated
TLDR:
- Calling
Iaphub.getProductsForSale()
- Getting an empty array
- Seeing that the products are being fetched in network call but still getting an empty array when using getProductsForSale
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (4 by maintainers)
Top Results From Across the Web
Android SDK weird behavior - Esri Community
Hi, We are currently building a mobile application using React Native. I know there is no official support for React Native however, ...
Read more >react-native-iaphub | easiest way to implement IAP - kandi
Implementing and developping all the tools to manage your In-App purchases properly can be very complex and time consuming. You should spend this...
Read more >react-native-iaphub - githubmemory
getProductsForSale() returning user_id_invalid error. ingerable. ingerable CLOSED ... Weird behavior with getProductsForSale(). harrisrobin.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great! Yes it is a little bit slower on ios, that’s itunes there is nothing we can do about it… It is also slower in sandbox compared to the production in my opinion.
@Marcoo09, your issue is definitely due to the sandbox environment not being configured correctly. Did you configure your app on IAPHUB correctly ? (Products and listing created?) Also please double check this page to configure your sandbox environment: https://www.iaphub.com/docs/set-up-ios/configure-sandbox-testing. A common issue is to have the iTunes Agreements not accepted, when they are not accepted the sandbox environment won’t work.
@nicoache1, when your sandbox environment is configured correctly you should be able to load the products for sale (even if you’re not connected to the sandbox account). If it is not configured correctly and the product isn’t returned by iTunes you should see an error in the console. After you’re able to load the products, purchase a product and enter your sandbox account credentials and the sandbox section in the settings should appear after the 1st purchase.