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

IOS: getAvailablePurchases return different number of records on every refresh

Open rb162215 opened this issue 3 years ago • 3 comments

When try to get users recent purchase history using getAvailablePurchases every time getting different number of records.

Version of react-native-iap - 6.2.4

Version of react-native-cli: 2.0.1

react-native: 0.61.4

Platforms you faced the error -IOS only

Expected behavior

When user open the app, i am calling getAvailablePurchases to get user purchase history, history must be same on every time open the app, untill new purchase in done.

Actual behavior

Purchase history is changing every time when app open, After subscribe to a auto renewable subscribe when open app getting 1 record in history. After next app open getting 2 record, then same time open app again and get 3 record. This happens every time when open app. SOme time receiving 36 record, some time 170 records.

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

Call RNIap.getAvailablePurchases() after app open and connection establish with app store.

rb162215 avatar Dec 21 '21 10:12 rb162215

Can you help me for getting the available products on IOS Side?

siddharthpvi avatar Jan 03 '22 06:01 siddharthpvi

I have this same problem, the list returned by getAvailablePurchases() is always different and sometimes going through this list breaks my application. Can anyone help us?

correafederico25 avatar Jan 14 '22 16:01 correafederico25

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

stale[bot] avatar Apr 18 '22 18:04 stale[bot]