Friday, September 28, 2012

Google Play IAB_PERMISSION_ERRO, code=12

We've been working on adding in app billing to our Android app, and everything worked through development. We prepared the release, and billing stopped working!

In the logs, I saw:

ERROR/Finsky(891): [1] CheckoutPurchase.setError: type=IAB_PERMISSION_ERROR, code=12, message=null
Turns out the issue was that our Store draft app versionCode was 78 while the version we were testing was 87. From - "Also, the version number of the uploaded application must match the version number of the application you load to your device for testing" - not less than or equal to, but only equal to! It takes some time after upload to work though.