React-native-iap: RNIap.requestPurchase have no resolved promise result on iOS 14.0 version

Created on 29 Jul 2020  路  7Comments  路  Source: dooboolab/react-native-iap

Version of react-native-iap

4.4.8, 4.5.0

Version of react-native

0.61.5

Platforms you faced the error (IOS or Android or both?)

IOS (14.0)

Expected behavior

requestSubscription and requestPurchase methods should resolve promise on sucessful purchase.

Actual behavior

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.

Tested environment (Emulator? Real Device?)

both

Steps to reproduce the behavior

  1. Set up purchases.
  2. Get real device with ios 14.0 or emulator with working StoreKit
  3. Try to get console.log from successful purchase:
RNIap.requestPurchase(sku, false).then(result => {console.log('result', result)});
//or
RNIap.requestSubscription(sku, false).then(result => {console.log('result', result)});

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 馃憤

All 7 comments

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

Was this page helpful?
0 / 5 - 0 ratings