Yeah, I included it and initialized it… This is what the main.lua looks like.
[lua]
local composer = require( “composer” )
local licensing = require(“licensing”)
licensing.init( “google” )
local function licensingListener( event )
print(“made it to licensing listener”)
print(event.errorType …“event errorType”) – says configurationerror
print(event.expiration …“event expiration”) --says 0
print(event.isError) – say true
print(“event isError Above”)
print(event.isVerified) – says false
print(“is Verifired Above”)
print(event.name …“event name”)
print(event.provider …“event provider”)
print(event.response …“event response”) – says not managed product or something like that.
if event.isVerified then
print(“my license was verified”)
startGame()
composer.gotoScene( “mainMenu” )
else
print(“my license failed”)
native.showAlert( “Licensing Failed!”, “There was a problem verifying the application, please try again.”, { “OK” } )
end
end
if system.getInfo(“environment”) == “simulator” then
startGame()
print(“It thinks Im in the sumulator”)
composer.gotoScene( “mainMenu” )
else
print(“Its determined Im not in the simulator, and calling the license listener”)
licensing.verify( licensingListener )
end
[/lua]