poiuytrez / AndroidInAppBilling

Android App Billing plugin for Cordova
174 stars 144 forks source link

Signature verification fail #48

Open fjellandermedia opened 10 years ago

fjellandermedia commented 10 years ago

I really can't get this to work. I get signature verification fail every time I attempt to do an in app billing purchase. I have of course entered the License key from Google play, but however I try it, I can't get it to work. I have tried with multiple Google accounts and with both a 2.3-unit and a 4.3-unit. I always get "Error purchasing: IabResult: Signature verification failed for sku se.fjellandermedia.kyrkoaret.bible (response: -1003:Purchase signature verification failed) at file:///android_asset/www/functions.js:13"

And weirdly enough, I don't get it at the same time as in #43, I get it only when trying to purchase an item. In the app, everything looks fine and the Google Play box says everything worked, but in the console I get the error. After this the plugin won't init because of the same error over and over again.

Does this work for you other guys? This is getting really frustrating here … Is there a way to circumvent the verification? I know it wouldn't be safe, but I'm starting to get desperate.

fjellandermedia commented 10 years ago

I should add that my apk:s are signed with the same key I always have used for this app. The versions that are on Google Play is signed with the same key.

sebastianz1980 commented 10 years ago

same problem here

sebastianz1980 commented 10 years ago

solved: had only changed the base64 key in plugin folder an not in the platform/android folder

fjellandermedia commented 10 years ago

Thank you so much @sebastianz1980! That was the issue for me too! Genius!

@poiuytrez you might want to clarify this in the read me-file. Or consider moving the key to config.xml, as another one suggested.

prasad111 commented 9 years ago

Hello @sebastianz1980 , Can u help me, where i will put my base 64 key in my android application. where is the plugin folder ? Please help me.. Thank You

sebastianz1980 commented 9 years ago

Hi,

I changed it in
projectroot/plattform/src/android/com/smartmobilesoftware/inappbilling and projectroot/plugins/com.smartmobilesoftware.inappbilling/src/android/com/smartmobilesoftware/inappbilling

open InAppBillingPlugin.java and change "base64EncodedPublicKey" to your value

lexdabest commented 9 years ago

Thanks @sebastianz1980. I had the same issue but with your help, its resolved now.