coronalabs / corona

Solar2D Game Engine main repository (ex Corona SDK)
https://solar2d.com/
MIT License
2.54k stars 273 forks source link

Feature request: Webview console output event #625

Open Be1zebub opened 1 year ago

Be1zebub commented 1 year ago

I would like to be able to read the webview console, for tracking js errors and debugging information. something like: webView:addEventListener("console", cback)

solares commented 1 year ago

We got it by adding console output after the # in the url, then the app gets advised of a URL change and you can grab the console output:

eg http://yourpage.html?console=blahblahblah

Be1zebub commented 1 year ago

We got it by adding console output after the # in the url, then the app gets advised of a URL change and you can grab the console output:

eg http://yourpage.html?console=blahblahblah

I know, i can send messages between webview/lua with this hack - a good thing, but its dont related to this issue - send messages between relams is not a goal.