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

9.0.2-beta fails to connect: java.lang.IllegalArgumentException: Pending purchases for one-time products must be supported. #643

Open
mfeingol opened this issue Nov 3, 2024 · 0 comments

Comments

@mfeingol
Copy link

mfeingol commented Nov 3, 2024

Bug Information

Version Number of Plugin: 9.0.2-beta
Device Tested On: Samsung S23+, emulator, Google Play Store test devices
Version of VS: 17.11.5
Version of Xamarin: MAUI 8.0.92
Versions of other things you are using:

Steps to reproduce the Behavior

Call ConnectAsync and observe the exception. Happens with 9.0.2-beta. 9.0.1-beta works fine.

Java.Interop.JniEnvironment.InstanceMethods.CallObjectMethod(JniObjectReference , JniMethodInfo , JniArgumentValue* )
Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeAbstractObjectMethod(String , IJavaPeerable , JniArgumentValue* )
Android.BillingClient.Api.PendingPurchasesParams.Builder.Build()
Plugin.InAppBilling.InAppBillingImplementation.ConnectAsync(Boolean enablePendingPurchases, CancellationToken cancellationToken)
Sideroads.LicensingService.HasPremiumAsync(CancellationToken cancellationToken)
java.lang.IllegalArgumentException: Pending purchases for one-time products must be supported.
com.android.billingclient.api.PendingPurchasesParams$Builder.build(SourceFile:17)
mono.java.lang.RunnableImplementor.n_run(Native Method)
mono.java.lang.RunnableImplementor.run(SourceFile:1)
android.os.Handler.handleCallback Handler.java:942
android.os.Handler.dispatchMessage Handler.java:99
android.os.Looper.loopOnce Looper.java:201
android.os.Looper.loop Looper.java:288
android.app.ActivityThread.main ActivityThread.java:7898
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:548
com.android.internal.os.ZygoteInit.main ZygoteInit.java:936

Expected Behavior

Success

Actual Behavior

Exception is thrown

Code snippet

await CrossInAppBilling.Current.ConnectAsync(cancellationToken: cancellationToken)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant