ERR_UNKNOWN_URL_SCHEME error appears on device.

Hello Everyone,

I have a simple web app which is being called inside a webView. It works great on simulator but when I open it on a device (Android) it shows ERR_UNKNOWN_URL_SCHEME error.

It also display an alert “This website save tons of data, we recommend installing UC BROWSER”.

It’s very weird. Do any of you know what is the cause of this error?

CODE:

function webListenerForBrowsers( event )    if event.url then             if string.find(event.url, "?d=") then     if string.find(event.url, "lat=") then      Runtime:removeEventListener( "location", getUserCurrentLocationAndShowUpMap )     else     curUrl = event.url;     event.target:stop();     Runtime:addEventListener( "location", getUserCurrentLocationAndShowUpMap )          end        end    end                  if event.type == "loaded" then       if welcomeLoaded == false then        clearInitialStuff();        end     end        if event.errorCode then     if tostring(event.errorCode) ~= "-999"  then            native.showAlert( "Error!", "Internet Connection Appears To Be Offline." .. event.errorCode.." \> "..event.errorMessage, { "OK" }, onComplete )     end     end     return true; end

Any help would be highly appreciated.

Thanks,

Is this still an issue? 

Have you tried the latest daily build?

Rob

Is this still an issue? 

Have you tried the latest daily build?

Rob