Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getProducts() returns only Product fields: price, currency, productId #1203

Closed
OlegPanfyorov opened this issue Dec 7, 2020 · 13 comments
Closed

Comments

@OlegPanfyorov
Copy link

OlegPanfyorov commented Dec 7, 2020

Version of react-native-iap

5.2.0

Version of react-native

0.63.3

Platforms you faced the error (IOS or Android or both?)

IOS

Expected behavior

When I call getProducts() or getSubscriptions() it should return me a Product objects array with all fields described in docs similar to this

{ productId: 'com.XXX.sdk38.annual', subscriptionPeriodUnitIOS: 'YEAR', description: 'Activate Premium features on XXX', introductoryPrice: '', title: 'Annual', introductoryPriceSubscriptionPeriodIOS: '', introductoryPriceNumberOfPeriodsIOS: '', discounts: [ { localizedPrice: '€0,00', numberOfPeriods: '1', type: 'SUBSCRIPTION', identifier: 'com.XXX.sdk38.tryannual', paymentMode: 'FREETRIAL', price: '0', subscriptionPeriod: 'MONTH' } ], type: 'Do not use this. It returned sub only before', localizedPrice: '€54,99', introductoryPricePaymentModeIOS: '', price: '54.99', currency: 'EUR', subscriptionPeriodNumberIOS: '1' }

Actual behavior

When I call getProducts() or getSubscriptions() it returns me a product with only 3 fields (see attached screenshot):

  • price
  • currency
  • productId
    {price: "19.99", currency: "USD", productId: "hiii.premium1a"}

Tested environment (Emulator? Real Device?)

Real device. Production scheme with build configuration Debug and Debug executable set to true. But generally, we've noticed the same behavior on prod.

Steps to reproduce the behavior

@NSNJRGL
Copy link

NSNJRGL commented Dec 8, 2020

Hi @OlegPanfyorov, can you get items on android using getProducts()? If yes, how you solve it? Thanks :)

@TimPetricola
Copy link

I've had the same problem when upgrading from 5.1.1 to 5.1.3. It doesn't affect every device/account, but we saw it happening in production for ~800 users. I could not find a specific pattern, but reverting to 5.1.1 fixed it.

@calluna18
Copy link

We have also noticed this issue for random users after 5.1.2. I noticed that it seems like it is the properties after the newly added countryCode that gets left out so probably an issue related to this.
https://github.com/dooboolab/react-native-iap/pull/1186/files#

Probably good to revert or fix as soon as possible since it is hard to notice this issue when it only affects random apple users.

Thanks for a good lib otherwise!

@leethree
Copy link

leethree commented Jan 8, 2021

Seeing the same issue on a lot of users. Probably related to #1186

@scchess
Copy link
Contributor

scchess commented Jan 10, 2021

Same issue.

@scchess
Copy link
Contributor

scchess commented Jan 10, 2021

Any update? We need to fix it.

@johnfrancisgit
Copy link

+1 any update on this?

@johnfrancisgit
Copy link

Having to downgrade to 5.1.1 until resolved

@loiclouvet
Copy link

I'm just having this issue on v5.2.3. Everything was working on multiple devices.
We submitted yesterday, a new app with in-app products but today, on the same devices, we are not retrieving all the fields.
Reverting to 5.1.1 did the trick, thank you @TimPetricola 🙏

@ninjaboy
Copy link
Contributor

ninjaboy commented Feb 6, 2021

Started seeing this for random users too, this is such a shame

@ninjaboy
Copy link
Contributor

ninjaboy commented Feb 6, 2021

@hyochan, Hyo, can we have this landed? how can we get a new release cut?

@hyochan
Copy link
Owner

hyochan commented Feb 6, 2021

@hyochan
Copy link
Owner

hyochan commented Feb 7, 2021

#1246 has been released to 5.2.6. Let's see how it goes.

@hyochan hyochan closed this as completed Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants