Me in final decision to use corona but i dont know how to add listener wifi status.
So here i my context:
local connByRequest = display.newText( “Requesting…”, display.contentCenterX, display.contentCenterY/2 +100 )
local function networkConnection()
local netConn = require(‘socket’).connect(‘www.google.com’, 80)
if netConn == nil then
connByRequest.text = “Request failed, Internet is Un-available”
else
connByRequest.text = “Request successull, Internet is Available”
netConn:close()
end
end
timer.performWithDelay( 1000, networkConnection , -1 )
does it cause app slow or drain battery too fast ?
Have something will check and fire event when connection changed ?
Like Scene !
Sorry my bad English,
thank you.