j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.3k stars 537 forks source link

[ANDROID] App crash after purchase #666

Closed franchi111 closed 6 years ago

franchi111 commented 6 years ago

App crashes after successful purchase

java.lang.RuntimeException: at android.app.ActivityThread.deliverResults (ActivityThread.java:4185) at android.app.ActivityThread.handleSendResult (ActivityThread.java:4228) at android.app.ActivityThread.-wrap20 (ActivityThread.java) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1564) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:241) at android.app.ActivityThread.main (ActivityThread.java:6274) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776) Caused by: java.lang.IllegalArgumentException: at com.smartmobilesoftware.util.Security.generatePublicKey (Security.java:67) at com.smartmobilesoftware.util.Security.verifyPurchase (Security.java:47) at com.smartmobilesoftware.util.IabHelper.handleActivityResult (IabHelper.java:539) at com.smartmobilesoftware.inappbilling.InAppBillingPlugin.onActivityResult (InAppBillingPlugin.java:453) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult (CordovaInterfaceImpl.java:152) at org.apache.cordova.CordovaActivity.onActivityResult (CordovaActivity.java:358) at android.app.Activity.dispatchActivityResult (Activity.java:6973) at android.app.ActivityThread.deliverResults (ActivityThread.java:4181) Caused by: java.security.spec.InvalidKeySpecException: at com.android.org.conscrypt.OpenSSLKey.getPublicKey (OpenSSLKey.java:295) at com.android.org.conscrypt.OpenSSLRSAKeyFactory.engineGeneratePublic (OpenSSLRSAKeyFactory.java:47) at java.security.KeyFactory.generatePublic (KeyFactory.java:357) at com.smartmobilesoftware.util.Security.generatePublicKey (Security.java:62) Caused by: java.lang.RuntimeException: at com.android.org.conscrypt.NativeCrypto.d2i_PUBKEY (Native Method) at com.android.org.conscrypt.OpenSSLKey.getPublicKey (OpenSSLKey.java:293)

Dexus commented 6 years ago

Closed the Issue because of ignoring to send our template with additional informations.