Android app no internet, webview webpage not available

Hey guys,

Yesterday I created a very basic app with a webview which loads a webpage.

The app was working in simulator (weburl printing fine in console) and webview was loading in iPhone simulator.

I builded the app for android and ran on my Samsung Galaxy S Duos and asked a friend to run on his android too and both devices had same problem.

App itself is running, all UI elements showing but the webview is not able to load any webpage.

The webview just shows unable to load webpage and webpage not available all the time, the same error/page shown in browser if there is no network connectivity.

I have wifi on and am able to access all urls in normal browser on my device but within app it seems as if there is no network connectivity.

My build settings have android permissions just fine and my code is give below

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "portrait", supported = { "portrait", } }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend             --[[            -- iOS app URL schemes:             CFBundleURLTypes =             {                 {                     CFBundleURLSchemes =                     {                         "fbXXXXXXXXXXXXXX", -- example scheme for facebook                         "coronasdkapp", -- example second scheme                     }                 }             }             --]] } }, --[[-- Android permissions androidPermissions = {   "android.permission.INTERNET",   },]]-- }

local weburl = event.params.weburl         print(weburl)         --print(\_W..\_H)         local webView         if string.sub(system.getInfo("model"),1,2) == "iP" then         webView = native.newWebView( 0, 62, \_W, \_H-62 )         else         webView = native.newWebView( 0, 50, \_W, \_H-50 )         end         webView.anchorX = 0         webView.anchorY = 0         print( display.contentCenterY..\_H )         webGroup:insert( webView )         webView:request( weburl )

Oh god dammit, just saw that the internet settings are commented out by default

Wasted 12 hours but didnt saw that

Yeah, stuff like that happens to the best of us.

Which is why it’s always a good idea to ask someone, then the obvious or simple solution usually rears it’s head straight after you ask :smiley:

Oh god dammit, just saw that the internet settings are commented out by default

Wasted 12 hours but didnt saw that

Yeah, stuff like that happens to the best of us.

Which is why it’s always a good idea to ask someone, then the obvious or simple solution usually rears it’s head straight after you ask :smiley: