react-native-iap
react-native-iap copied to clipboard
[iOS] getSubscriptions and getProducts return empty discounts
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?
I have the same problem
I am also getting empty discounts issue
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!
same
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?
https://github.com/dooboolab/react-native-iap/pull/1769
Closing, please reopen if it's still an issue on latest