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

purchaseUpdatedListener is not firing up

Open jerrintkg opened this issue 5 years ago • 4 comments

Please use Discussion board if you want get some help out of it. Please report issue if there is a bug.

Version of react-native-iap

"react-native-iap": "^6.0.0"

Version of react-native

"react-native": "0.62.2"

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

IOS

Expected behavior

purchaseUpdatedListener needs to trigger immediately when subscription purchase or upgrade/downgrade

Actual behavior

  1. purchaseUpdatedListener not returning receipt when triggering the upgrade/downgrade action(waited for long).

Tested environment (Emulator? Real Device?)

Real Device - sandbox

Steps to reproduce the behavior

  1. Initiate one subscription.
  2. Upgrade/Downgrade the subscription with the function call requestSubscription(newSku).
  3. purchaseUpdatedListener not firing up for further actions (waited above 10 min).

jerrintkg avatar Jul 23 '21 13:07 jerrintkg

Same here with 7.5.0 version and using RNIap.requestSubscription(sku), when upgrade subscription... =( Any workaround?

JorgeMoV avatar Oct 11 '21 13:10 JorgeMoV

Ok, in case it happens to someone, solved by executing this instruction: await RNIap.clearTransactionIOS ();

before this: await RNIap.requestSubscription (sku);

JorgeMoV avatar Oct 14 '21 12:10 JorgeMoV

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]

Thank you for the info @JorgeMoV

andresesfm avatar Jul 26 '22 18:07 andresesfm