Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when upgrade/downgrade subscription on Android #1340

Closed
jerrintkg opened this issue May 17, 2021 · 2 comments
Closed

Error when upgrade/downgrade subscription on Android #1340

jerrintkg opened this issue May 17, 2021 · 2 comments
Labels
🤖 android Related to android 🐛 bug Something isn't working

Comments

@jerrintkg
Copy link

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?)

 Android

Expected behavior

When upgrade/downgrade a subscription ,current subscription must replaced with new sku and new purchase token.

Actual behavior

Triggering new subscription along with old one (we can see two subscriptions(skus) same time).

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,false,oldSku,oldPurchaseToken,4) ( 4: DEFERRED)

  3. subscription prompt will show (like new subscription along with the old one).

@andresesfm andresesfm added 🐛 bug Something isn't working 🤖 android Related to android labels May 17, 2021
@andresesfm
Copy link
Contributor

@jerrintkg could this be a duplicate of #888 ?

@hyochan
Copy link
Owner

hyochan commented May 19, 2021

@andresesfm Thanks this can be closed.

@hyochan hyochan closed this as completed May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Related to android 🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants