Platforms you faced the error (IOS or Android or both?)
IOS
Android
Expected behavior
It should return the current subscribed receipt.
Actual behavior
In our app we have two type of subscriptions: Basic and Premium. When user upgrades or downgrades between the two subscription, I call getAvailablePurchases API. but it returns old and new subscriptions receipts (after it already cancel or expired). instead of giving me only the active subscription.
How do we retrieve only the active subscription, the latest one that user updated.
Version of react-native-iap
"react-native-iap": "^5.2.0",
Version of react-native
node - v12.18.4 react-native: 0.62.2
Platforms you faced the error (IOS or Android or both?)
IOS Android
Expected behavior
It should return the current subscribed receipt.
Actual behavior
In our app we have two type of subscriptions: Basic and Premium. When user upgrades or downgrades between the two subscription, I call getAvailablePurchases API. but it returns old and new subscriptions receipts (after it already cancel or expired). instead of giving me only the active subscription. How do we retrieve only the active subscription, the latest one that user updated.
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior