Hey all!
So i have been trying to get my app on Google play without any luck!
Have been trying to get the google licensing guide from, http://www.develephant.net/using-google-licensing-to-protect-your-corona-sdk-app to work but cant seem to get it up and running.
I will post the code i have in my build- and main-lua files.
Config.lua
local aspectRatio = display.pixelHeight / display.pixelWidth application = { license = { google = { key = "Removed the code in this post....", }, }, content = { width = aspectRatio \> 1.5 and 320 or math.ceil( 480 / aspectRatio ), height = aspectRatio \< 1.5 and 480 or math.ceil( 320 \* aspectRatio ), scale = "letterBox", fps = 30, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }
build.settings
settings = { orientation = { default = "landscapeLeft", supported = { "landscapeLeft", "landscapeRight" }, }, iphone = { plist= { --UIStatusBarHidden=true, }, }, android = { usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "com.android.vending.BILLING", }, }, }
main.lua
local composer = require ("composer") local licensing = require( "licensing" ) licensing.init( "google" ) local function licensingListener( event ) local verified = event.isVerified if event.isVerified then composer.gotoScene("intro") else native.showAlert( "Licensing Failed!", "There was a problem verifying the application, please try again.", { "OK" } ) end end licensing.verify( licensingListener )
Any thoughts why i cant get the license to work?
BR
Tommy