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 crashes when paying with 'Slow test card, approves after a few minutes.' #102

Closed
dipinarora9 opened this issue Sep 30, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@dipinarora9
Copy link
Contributor

dipinarora9 commented Sep 30, 2019

Version of flutter_inapp_purchase - 2.0.0+11

Problem being faced on a physical android device.

Actual behavior

App just crashes giving the following output.

E/DoobooUtils(21252): Error Code : 5
D/AndroidRuntime(21252): Shutting down VM
E/AndroidRuntime(21252): FATAL EXCEPTION: main
E/AndroidRuntime(21252): Process: dipinarora9.IncomeTaxCalculator, PID: 21252
E/AndroidRuntime(21252): java.lang.IllegalArgumentException: Unsupported value: [Ljava.lang.String;@430907d
E/AndroidRuntime(21252): 	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:294)
E/AndroidRuntime(21252): 	at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)
E/AndroidRuntime(21252): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:230)
E/AndroidRuntime(21252): 	at com.dooboolab.flutterinapppurchase.AndroidInappPurchasePlugin$5.onAcknowledgePurchaseResponse(AndroidInappPurchasePlugin.java:408)
E/AndroidRuntime(21252): 	at com.android.billingclient.api.BillingClientImpl$18$2.run(BillingClientImpl.java:1117)
E/AndroidRuntime(21252): 	at android.os.Handler.handleCallback(Handler.java:815)
E/AndroidRuntime(21252): 	at android.os.Handler.dispatchMessage(Handler.java:104)
E/AndroidRuntime(21252): 	at android.os.Looper.loop(Looper.java:207)
E/AndroidRuntime(21252): 	at android.app.ActivityThread.main(ActivityThread.java:5769)
E/AndroidRuntime(21252): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(21252): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
E/AndroidRuntime(21252): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

Steps to reproduce the behavior

When requesting for a test purchase instead of selecting 'Test card, always approves' try selecting 'Slow test card, approves after a few minutes.'.

@hyochan hyochan added the bug Something isn't working label Sep 30, 2019
@hyochan
Copy link
Owner

hyochan commented Sep 30, 2019

Hey, I've just tested now and flutter seems to only send string as a parameter. I've release 2.0.0+12 for the fix. Please try and come back.

@hyochan hyochan closed this as completed Sep 30, 2019
hyochan added a commit that referenced this issue Sep 30, 2019
@dipinarora9
Copy link
Contributor Author

hey again @hyochan ! The issue seems to be fixed now. App is not crashing and I am getting the required Platform exception for acknowledgement of purchase.

Thanks again!

@hyochan
Copy link
Owner

hyochan commented Oct 1, 2019

My pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants