Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Crash when using Xamarin.InAppBilling

$
0
0

Hi!

I'm getting a crash with a game when calling:

var purchases=_serviceConnection.BillingHandler.GetPurchases (ItemType.Product);

The In App Billing is correctly configured, the products are correctly listed and users have even purchased some products (and not being able to use them due to the crash).

The program crashes only in production, did not crash on debug.

The stack trace is this: (sorry about the file line numbers, I've not been able to set them correctly to be shown)

Exception of type \'Java.Lang.IllegalArgumentException\' was thrown. at Xamarin.InAppBilling.Utilities.Security.GeneratePublicKey (System.String encodedPublicKey) [0x00000] in :0 at Xamarin.InAppBilling.Utilities.Security.VerifyPurchase (System.String publicKey, System.String signedData, System.String signature) [0x00000] in :0 at Xamarin.InAppBilling.InAppBillingHandler.GetPurchases (System.String itemType) [0x00000] in :0 at Snippets.InAppWrapper+d__2.MoveNext () [0x00000] in :0 --- End of managed exception stack trace --- java.lang.IllegalArgumentException at mono.java.lang.RunnableImplementor.n_run(Native Method) at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java:5279) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)

any ideas?

Thanks! Kak


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>