dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.74k stars 633 forks source link

getPurchaseHistory & getAvailablePurchases undefined IOS #2660

Open erenfp opened 6 months ago

erenfp commented 6 months ago

const {connected, purchaseHistory, getPurchaseHistory, getAvailablePurchases} = useIAP(); getPurchaseHistory, getAvailablePurchases undefined ios platforms

venux92 commented 4 months ago

I do have the same issue did you solve it?

I have to call it 5-10 times to get the token back.. otherwise I get {"error": [Error: An unknown error occurred]}

keval7169-ops commented 4 months ago

i'm getting same issue

anatoolybinerals commented 3 months ago

some issues for subscription

anatooly commented 3 months ago

I do have the same issue did you solve it?

I have to call it 5-10 times to get the token back.. otherwise I get {"error": [Error: An unknown error occurred]}

try it setup({ storekitMode: 'STOREKIT2_MODE' })

omedkane commented 1 month ago

I do have the same issue did you solve it? I have to call it 5-10 times to get the token back.. otherwise I get {"error": [Error: An unknown error occurred]}

try it setup({ storekitMode: 'STOREKIT2_MODE' })

Works 🎉🎈