Hi, since fullscreen ads are intended to work like they work (no close icon, so people need to force close the application) i’ve been trying to set it up manually so at least they can use the back phone button to close it, but im failing doing that.
local function onKeyEvent( event )
local phase = event.phase
local keyName = event.keyName
if “back” == keyName and ads_on == 1 then
ads.hide()
end
return true
end
Runtime:addEventListener( “key”, onKeyEvent )
This is what i got from another thread, but i can’t make that the back button works fine (closing the app) when there is no ad, since all it does is just hiding the ad.
Is there an easy way to make it?
Thanks