The app terminated because that is what I wanted it to do. I phrased the question poorly. The question is why did the licensing fail when I installed the key and code exactly as described by Corona?
I build the app - no errors. I move it via a usb cable to my test android device. It installs. When ran it briefly shows a screen and exits - indicating that the license was not verified.
And yes, it installs and operates fine with the licensing code removed.
main.lua:
-- Google Licensing 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 print( "Pirates: Walk the Plank!!!" ) native.requestExit() --assuming this is how we handle pirates end end licensing.verify( licensingListener );
config.lua:
license = { google = { key = "my long key without spaces", policy = "serverManaged", }, },