Android webviews die when talking back to Corona layer

I know this has been an issue for a while, but I still can’t seem to find the approperiate solution so I’m hoping some mad scientest Corona junkie can help me around this.

The problem:

Open a webview in a scene on an Android device. Website loads fine within the webview.

Add a button inside the webview to talk back to Corona to tell the app to do something, such as “close”, “change scene”, “show/hide element”, etc.

Seems simple enough…

But when I put the element inside the webview and assign it a value so the webview listener can detect it such as “corona:close”, and tap the element (inside the webview), only on Android - the webview dies with “net:ERR_UNKOWN_URL_SCHEME”

I’ve tried webview:stop(), webview:back(), and other variants, but the touches to invalid “actual” links inside a webview on Android die every time -thus forcing the app in limbo.

I’m using the latest daily build Version 2017.3128 (2017.8.26), Samsung Galaxy S5 for testing

The webview listener code to chew on:

[lua]

function webListener(event)

    if event.url == “corona:fullScreen” then

    goFullScreen() --local function to change the webview size

    elseif event.url == “corona:exitFull” then

    exitFullScreen() 

    return true

    end

end

[/lua]

Can you make a small demo project (main.lua, build.settings and config.lua) that demos this problem and put it in a .zip file and use the “Report a bug” link at the top of the page and report this please.

In the mean time, try something like https://corona_close

Thanks

Rob

Can you make a small demo project (main.lua, build.settings and config.lua) that demos this problem and put it in a .zip file and use the “Report a bug” link at the top of the page and report this please.

In the mean time, try something like https://corona_close

Thanks

Rob