I have now built 6 versions…
3 are with Corona build 591, 3 are with build 649.
For each Corona build I’ve build:
My own app
The web overlay sample
The web overlay sample, with the following code change:
[lua]-- new function
function copyFile( filename )
local path = system.pathForFile( filename, system.ResourcesDirectory )
local file = io.open( path, “r” )
local aline = file:read("*a")
io.close( file )
path = system.pathForFile( filename, system.TemporaryDirectory )
file = io.open( path, “w” )
file:write( aline )
io.close( file )
end
– calls the new function
copyFile( “localpage.html” )
– changed the baseUrl value from Resources to Temporary
local options = { hasBackground=false, baseUrl=system.TemporaryDirectory, urlRequest=listener }
native.showWebPopup( “localpage.html”, options )[/lua]
Installing all six builds showed that the only work version is the original, unchanged, sample web overlay code.
So, it appears that it is either my ‘copyFile’ function or the use of ‘system.TemporaryDirectory’ with the web overlay which breaks.
It should be noted that it broke in both Corona builds (591 and 649) so this is not a recent thing and not localised to the current stable build, I’m afraid.
That’s my info so far - if anyone can shed light or even throw some ideas for what to test next out, I’d be much obliged.
Matt. [import]uid: 8271 topic_id: 15566 reply_id: 63993[/import]