question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird behavior with getProductsForSale()

See original GitHub issue

Hi 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.

image

P.S: Interestingly, this library performs two calls (not sure why). Here’s the second which responds with nothing:

image

Any help is appreciated

TLDR:

  1. Calling Iaphub.getProductsForSale()
  2. Getting an empty array
  3. Seeing that the products are being fetched in network call but still getting an empty array when using getProductsForSale

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
iaphubcommented, Dec 20, 2020

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.

2reactions
iaphubcommented, Mar 31, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found