Closed gurol closed 3 years ago
Looks like a legacy issue. Will look into this.
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.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Version of react-native-iap
4.6.3
Version of react-native
0.63.3
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
getAvailablePurchases() should return E_NETWORK_ERROR instead of E_UNKNOWN
Actual behavior
The try/catching getAvailablePurchases() triggers the catch exception with correct (localized) description but incorrect (actually indistinguishable) error code. The description (in Turkish) is correct: "Uluslararası Dolaşım şu anda kapalı" (Cellular Network is off right now)
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
The issue was already reported by @acostalima with a clear explaination but it was closed the stale bot
819
The descriptions in react-native-iap (index.ts) are
Store Kit Error Codes:
In the reported case cloudServiceNetworkConnectionFailed returns E_UNKNOWN (index 0) instead of E_NETWORK_ERROR (index 8)
I could not spot a possible bug in RNIapIos.m file, possibly here: