react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

[iOS] getSubscriptions and getProducts return empty discounts

Open yaroslavnikiforov opened this issue 2 years ago • 6 comments

Version of react-native-iap

8.0.9

Version of react-native

0.67.1

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

IOS

Expected behavior

getSubscriptions should return not empty discounts array if a subscription has promotional offers.

Actual behavior

getSubscriptions stopped returning newly added to the subscription promotional offers.

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

Add a new promotional offer to the subscription and call getSubscriptions or getProducts. The discounts array will not include the new offer. It used to work and these methods return promotional offers that were added some time ago. If you delete some of the old offers, discounts will be updated and they also will not be returned. But any of the new offers are not included.

Some breaking changes in StoreKit?

yaroslavnikiforov avatar May 25 '22 15:05 yaroslavnikiforov

I have the same problem

CodingByJerez avatar May 26 '22 08:05 CodingByJerez

I am also getting empty discounts issue

jkfurog avatar Jun 06 '22 02:06 jkfurog

I also have this issue and it is very critical to have it resolved as soon as possible since we can't make any updates to the subscriptions right now. Hope there will be a solution soon!

Mandoliiin avatar Jun 15 '22 10:06 Mandoliiin

same

Desintegrator avatar Jun 22 '22 11:06 Desintegrator

This is the only condition I see that would prevent discounts from being populated: https://github.com/dooboolab/react-native-iap/blob/main/ios/RNIapIos.swift#L766 . Is that the case for you?

andresesfm avatar Jul 25 '22 21:07 andresesfm

https://github.com/dooboolab/react-native-iap/pull/1769

pranko17 avatar Jul 28 '22 15:07 pranko17

Closing, please reopen if it's still an issue on latest

andresesfm avatar Sep 02 '22 19:09 andresesfm