Hi,
I’d like to share part of code I wrote for testing webview on Windows Simulator, so at least you have idea where is it placed and what it should do.
Just load paste this code in you utility/extension file, load it as module or on top of project - but before calling native.newWebView
if system.getInfo( "environment" ):lower() == "simulator" and system.getInfo( "platformName" ):lower() == "win" then local replacement = {} function replacement.new( x , y , w , h ) local r = display.newRect( x, y, w, h ) r:setFillColor(1,1,1,0.5) function r:request( url , baseDir ) print( "REQUEST CALLED" , url , baseDir ) -- You can always try network.request here and try to print at least some of page content here, -- but I personally find it redunant and complex -- The point of all this is only to prevent errors and to show bounds of webview in simulator on Windows end function r:reload() print("RELOAD CALLED") end function r:stop() print("STOP CALLED") end function r:back() print("BACK CALLED") end function r:forward() print("FORWARD CALLED") end return r end local mt = {} function mt.\_\_call(self,x,y,w,h) return replacement.new(x,y,w,h) end native.newWebView = setmetatable( {} , mt ) end