4.4.8, 4.5.0
0.61.5
IOS (14.0)
requestSubscription and requestPurchase methods should resolve promise on sucessful purchase.
purchaseUpdatedListener receives the result of successful purchase but RNIap.requestPurchase(sku, false) and RNIap.requestSubscription(sku, false) have no resolved promise result. Actually there is no success callback execution. It works fine in previous ios versions and in android.
both
RNIap.requestPurchase(sku, false).then(result => {console.log('result', result)});
//or
RNIap.requestSubscription(sku, false).then(result => {console.log('result', result)});
I'm having the same problem
Also seeing this issue on iOS 14 beta 2.
Weird thing is that it was working for me perfectly fine. I was using Iaphub to handle the purchase and started having this issue so I switched to using this package and it was working fine until yesterday.
It actually seems to be working, it does nothing after the purchase and you have to reload the app and then all the code after making the purchase will run.
We're having the same issue in a mac catalyst app on iOS 13 / macOS 10.15.5.
The steps to reproduce the behavior are the same
Just submitted a pull request to fix the issue.
As soon as it is accepted, we will update react-native-iaphub to the latest version of react-native-iap with the fix 馃憤
Fixed in 4.5.2.
+1 still having the same problem in IOS, I'm using 4.5.3
Most helpful comment
Just submitted a pull request to fix the issue.
As soon as it is accepted, we will update react-native-iaphub to the latest version of react-native-iap with the fix 馃憤