Hi,
I got a few users contacting me or leaving a review that the game doesn’t work due to the license not verified.
Usually I ask them to try again and it worked.
My code is very lenient, only a event.isVerified = false will trigger the error alert:
----------------------------------- --build.setting "com.android.vending.CHECK\_LICENSE", ----------------------------------- --config.lua license = { google = { -- The "key" value is obtained from Google key = "the long long key", policy = "serverManaged" }, }, ----------------------------------- --Main.lua if \_G.platform == "Android" then licensing = require( "licensing" ) licensing.init( "google" ) end ----------------------------------- --Main2.lua --LICENCE if \_G.platform == "Android" then local function licensingListener( event ) if event and (not event.isError) and (not event.isVerified) then local function onComplete2( event ) if "clicked" == event.action then native.requestExit() end end --alertPop = native.showAlert( "Error", "License Invalid.\nDownload from Google Play Store.", { "OK" }, onComplete2 ) local function onComplete3( event ) native.requestExit() end timer.performWithDelay(5000, onComplete3); end end licensing.verify( licensingListener ) end
I suspect it is the googleplay store’s fault, maybe the licensing takes some time to process so when user pay and download the game it is not licensed yet?
Also I noticed I got the angry emails every time after I updated the game(but resolved after they tried again), not sure if it is related.
ps. for expansion files, if I use old expansion files instead of submitting new ones, does all the lua files including those in sub folders are updated?
Thanks in advance.
