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

App Crashing on android while doing test payment #837

Closed
Murugeshrockey-RN opened this issue Nov 2, 2019 · 3 comments
Closed

App Crashing on android while doing test payment #837

Murugeshrockey-RN opened this issue Nov 2, 2019 · 3 comments
Labels
🐛 bug Something isn't working 🚶🏻 stale Stale

Comments

@Murugeshrockey-RN
Copy link

Version of react-native-iap

4.0.2

Version of react-native

0.60.5

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

Android

Expected behavior

payment success

Actual behavior

Getting Crashes and got below error
data:text/text;charset=utf-8,
java.lang.RuntimeException: Cannot convert argument of type class com.android.billingclient.api.Purchase
at com.facebook.react.bridge.Arguments.fromJavaArgs(Arguments.java:191)
at com.facebook.react.bridge.CallbackImpl.invoke(CallbackImpl.java:32)
at com.facebook.react.bridge.PromiseImpl.resolve(PromiseImpl.java:57)
at com.dooboolab.RNIap.DoobooUtils.resolvePromisesForKey(DoobooUtils.java:125)
at com.dooboolab.RNIap.RNIapModule.onPurchasesUpdated(RNIapModule.java:527)
at com.android.billingclient.api.BillingClientImpl$1.onReceiveResult(BillingClientImpl.java:185)
at android.os.ResultReceiver$MyRunnable.run(ResultReceiver.java:50)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6517)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

Android - Alpha Release

@hyochan
Copy link
Owner

hyochan commented Nov 4, 2019

It's been resolved in #771. Please use the recent version. Checking changelog would help you with this kinds of problem!

@hyochan hyochan added the 🐛 bug Something isn't working label Nov 4, 2019
@stale
Copy link

stale bot commented Feb 2, 2020

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 stale bot added the 🚶🏻 stale Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Mar 3, 2020

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.

@stale stale bot closed this as completed Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🚶🏻 stale Stale
Projects
None yet
Development

No branches or pull requests

2 participants