Hey everyone,
Using build 3117.
With IAP badger.
Used the app specfic keystore/key alias when building
iOS IAP works in debug and in store.
Andrioid IAP products are setup in store and active.
Beta test version is up and a test user is setup.
User tries to purchase a product. Puts in user/pass. Gets receipt for product trying to purchase. Then when the device tries to go back to app it crashes.
Here is crash log from logcat. Any ideas?
08-08 14:29:39.755 22116 22116 E AndroidRuntime: FATAL EXCEPTION: main
08-08 14:29:39.755 22116 22116 E AndroidRuntime: Process: com.squrielman.birdzoo, PID: 22116
08-08 14:29:39.755 22116 22116 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.squrielman.birdzoo/com.ansca.corona.CoronaActivity}: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c074079:ASN.1 encoding routines:ASN1_get_object:HEADER_TOO_LONG
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:3779)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.app.ActivityThread.handleSendResult(ActivityThread.java:3822)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.app.ActivityThread.access$1400(ActivityThread.java:155)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1429)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.os.Looper.loop(Looper.java:152)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5497)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c074079:ASN.1 encoding routines:ASN1_get_object:HEADER_TOO_LONG
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at plugin.google.iap.v3.util.Security.generatePublicKey(Security.java:109)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at plugin.google.iap.v3.util.Security.verifyPurchase(Security.java:89)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at plugin.google.iap.v3.util.IabHelper.handleActivityResult(IabHelper.java:500)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at plugin.google.iap.v3.LuaLoader$5.onHandleActivityResult(LuaLoader.java:327)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at com.ansca.corona.CoronaActivity.onActivityResult(CoronaActivity.java:3343)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.app.Activity.dispatchActivityResult(Activity.java:6498)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:3775)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: … 9 more
08-08 14:29:39.755 22116 22116 E AndroidRuntime: Caused by: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c074079:ASN.1 encoding routines:ASN1_get_object:HEADER_TOO_LONG
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:250)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at com.android.org.conscrypt.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyFactory.java:47)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at java.security.KeyFactory.generatePublic(KeyFactory.java:172)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at plugin.google.iap.v3.util.Security.generatePublicKey(Security.java:104)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: … 15 more
08-08 14:29:39.755 22116 22116 E AndroidRuntime: Caused by: java.lang.RuntimeException: error:0c074079:ASN.1 encoding routines:ASN1_get_object:HEADER_TOO_LONG
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at com.android.org.conscrypt.NativeCrypto.d2i_PUBKEY(Native Method)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:248)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: … 18 more
08-08 14:29:39.760 22116 22116 D AppTracker: App Event: crash