Hi all,
if the http.request works with wifi all works fine, if it works in grps mode and no connection is active I have an error and nothing works. If there is a connection active (for example mail) all works fine also in gprs mode.
There is a solution that i don't know?
Thanks
Alessandro
Of course.
This happens only on the device, in the simulator always all ok
...
function init()
native.setActivityIndicator( true )
b, c, h = http.request( "http://www.xxx.net/file.xml" )
if (c == 200) then
--
else
local splashscreen = display.newImage( "splashscreen.png" )
myText = display.newText( "No internet connection", 10, 420, "Helvetica-Bold", 18 )
myText:setTextColor( 255, 255, 255 )
end
native.setActivityIndicator( false )
end
...
init()
Confirm the problem.
I have to run any application that requires internet connection before that I could run any corona application that uses lua http socket (when there is not wifi connection).
Logged as a bug, testing now...
(Logged as bug #138)
can you provide sample code that is giving you problem?
Carlos