I’ve published ContractorsPA v1 biz app (versionCode=1000) on Google/Apple stores successfully.
I’m now testing v2 (versionCode=1100) but the Android version is failing the Licensing check via this code:
[located in main lua]
-- google licensiing if string.sub(system.getInfo("architectureInfo"),1,3) == "ARM" then local licensing = require( "licensing" ) licensing.init( "google" ) local function licensingListener( event ) local verified = event.isVerified if not event.isVerified then --failed verify app from the play store, we print a message native.showAlert( "ContractorsPA Alert", "Google Licensing failure.", { "OK" } ) end end licensing.verify( licensingListener ) end
Now, when I load onto my Android nexus10, the showAlert() fires. My email address is registered with Google Developer Account.
- Is my versionCode value (now 1100 for v2) assigned in build.lua OR set in the Android-relevant dialog box when I do the build from within the Corona Simulator?
- How does an app typically come to fail Google Licensing?
- Right now, I simply show the alert message - and the app stays live & functioning. Is this a problem?
Thanks for any insight to help me better understand the innards of Google Licensing.
Seth