Web Popups

Have you submitted a bug report? [import]uid: 8271 topic_id: 24287 reply_id: 114302[/import]

Have you tried putting a device metatag in the HTML which makes the WebView render the whole thing according to certain device width constraints? (meta name=“viewport” content=“width=device-width, target-densitydpi=160dpi, minimum-scale=1” et cetera)?

Also, why have the daily builds been down for so long? I am still waiting for a decent Web View in Android!

Corona’s reply about “We should have webView for Android soon” has been almost two months ago! [import]uid: 67504 topic_id: 24287 reply_id: 116529[/import]

I built a list of meta tags for just that purpose about this time last year. Search the forums but if you don’t find the link i’ll try to dig it up later. [import]uid: 8271 topic_id: 24287 reply_id: 116535[/import]

Found it: https://developer.coronalabs.com/code/orientation-rotation-web-popup [import]uid: 8271 topic_id: 24287 reply_id: 116541[/import]

Has anyone gotten a site with embedded swf’s (Flash) to work? I’m assuming its being blocked for protection, not sure were to turn off the blocked content. [import]uid: 156772 topic_id: 24287 reply_id: 131661[/import]

On iOS that won’t work because flash won’t run. There are flash enabled browsers, but I believe it’s a bit of a hack. Take a look at Puffin. But if you want to run flash inside a Corona app you’ll be writing your own flash engine.

http://www.apple.com/hotnews/thoughts-on-flash/ [import]uid: 8271 topic_id: 24287 reply_id: 131701[/import]

Has anyone gotten a site with embedded swf’s (Flash) to work? I’m assuming its being blocked for protection, not sure were to turn off the blocked content. [import]uid: 156772 topic_id: 24287 reply_id: 131661[/import]

On iOS that won’t work because flash won’t run. There are flash enabled browsers, but I believe it’s a bit of a hack. Take a look at Puffin. But if you want to run flash inside a Corona app you’ll be writing your own flash engine.

http://www.apple.com/hotnews/thoughts-on-flash/ [import]uid: 8271 topic_id: 24287 reply_id: 131701[/import]

Has anyone ever got loading local assets such as .css, image files, or other “externally” called files to work in a LOCAL html page that is pulled from a webpopup?
[import]uid: 9046 topic_id: 24287 reply_id: 142696[/import]

Yes, but they need to be in the same directory as the HTML file you’ve rendered to the webview. So if you ever want to do anything dynamic, you’ll need to write the HTML file to the temp directory, for example. Local files are referenced by just naming the file without a preceding pathname. [import]uid: 8271 topic_id: 24287 reply_id: 142708[/import]

Yeah, that is how I’m having to do it for a new app that uses local resources in a map overlay. The problem is on Android when you try to io copy files over on some devices the system doesn’t work consistently enough to be called “stable”. Thanks for the input :slight_smile:

Richard
[import]uid: 9046 topic_id: 24287 reply_id: 142746[/import]

I’ve not tried it with Android, I’m afraid. I don’t have much faith in it. [import]uid: 8271 topic_id: 24287 reply_id: 142754[/import]

http://www.coronalabs.com/blog/2013/02/13/faq-wednesday-sub-folder-and-file-access/ [import]uid: 8271 topic_id: 24287 reply_id: 142755[/import]

Has anyone ever got loading local assets such as .css, image files, or other “externally” called files to work in a LOCAL html page that is pulled from a webpopup?
[import]uid: 9046 topic_id: 24287 reply_id: 142696[/import]

Yes, but they need to be in the same directory as the HTML file you’ve rendered to the webview. So if you ever want to do anything dynamic, you’ll need to write the HTML file to the temp directory, for example. Local files are referenced by just naming the file without a preceding pathname. [import]uid: 8271 topic_id: 24287 reply_id: 142708[/import]

Yeah, that is how I’m having to do it for a new app that uses local resources in a map overlay. The problem is on Android when you try to io copy files over on some devices the system doesn’t work consistently enough to be called “stable”. Thanks for the input :slight_smile:

Richard
[import]uid: 9046 topic_id: 24287 reply_id: 142746[/import]

I’ve not tried it with Android, I’m afraid. I don’t have much faith in it. [import]uid: 8271 topic_id: 24287 reply_id: 142754[/import]

http://www.coronalabs.com/blog/2013/02/13/faq-wednesday-sub-folder-and-file-access/ [import]uid: 8271 topic_id: 24287 reply_id: 142755[/import]

Has anyone ever got loading local assets such as .css, image files, or other “externally” called files to work in a LOCAL html page that is pulled from a webpopup?
[import]uid: 9046 topic_id: 24287 reply_id: 142696[/import]

Yes, but they need to be in the same directory as the HTML file you’ve rendered to the webview. So if you ever want to do anything dynamic, you’ll need to write the HTML file to the temp directory, for example. Local files are referenced by just naming the file without a preceding pathname. [import]uid: 8271 topic_id: 24287 reply_id: 142708[/import]