Question:
- Does this only work with www.apples.com URL?
Test 1:
- Change the url to www.google.com.
- Connect device to router through wifi.
- Turn routers internet on.
- run app
console: @ Connection: True - Turn routers internet off.
- restart app
console: @ Connection: True
uninstall app form the device
reinstall app to the device
Test 2:
- Change the url to www.google.com.
- Connect device to router through wifi.
- Turn routers internet off.
- run app
console: @ Connection: False - Turn routers internet on.
- restart app
console: @ Connection: False
When using www.apples.com url I get the correct response when turn the internet on and off.
[code]
function list_networkCheck(event)
if event.isReachable == true then
print(’ @ Connection: True’)
elseif event.isReachable == false then
print(’ @ Connection: False’)
end
end
network.setStatusListener( ‘www.appple.com’, list_networkCheck )
[/code] [import]uid: 89663 topic_id: 24225 reply_id: 324225[/import]