dooboolab-community / react-native-iap

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

In app purchase ios with promotion code #450

Closed truckhiem closed 4 years ago

truckhiem commented 5 years ago

Version of react-native-iap: 2.4.4

Version of react-native: 0.58.6

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

Expected behavior:

  1. Redeem promotion code in store
  2. Back to app and restore purchase
  3. Get receipt purchase

Actual behavior

  1. Redeem promotion code in store --> success
  2. Back to app and nothing happen
  3. Get availablePurchase --> null
  4. Get purchaseHistory --> null
  5. GetPromotedProduct --> null

Tested environment (Emulator? Real Device?): Real Device

Steps to reproduce the behavior

I implemented these codes follow instruction:

Screen Shot 2019-04-07 at 11 12 14 AM

I add these codes at restoreButton to get promotedProduct:

Screen Shot 2019-04-07 at 11 20 10 AM

Any help? Thank you.

stale[bot] commented 5 years ago

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] commented 4 years ago

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.

StefanoCremona commented 3 years ago

@truckhiem did you solve this problem? I'm having the same issue. I redeem the code on the app store and there's no way from the app to know anything about it. Cheers