The window.WEBVIEW_SERVER_URL global variable used by convertFileSrc is no longer accurate when using cordova android 10, because cordova android 10 changed the app protocol to https. The window.WEBVIEW_SERVER_URL still has a value of http://localhost, but it should be https://localhost to match cordova android 10.
Closing this as I can see the scheme preference in the docs. Maybe it's worth updating the default value to https as more and more devs upgrade to cordova android 10.
The
window.WEBVIEW_SERVER_URL
global variable used byconvertFileSrc
is no longer accurate when using cordova android 10, because cordova android 10 changed the app protocol tohttps
. Thewindow.WEBVIEW_SERVER_URL
still has a value ofhttp://localhost
, but it should behttps://localhost
to match cordova android 10.For now my workaround is to put
at the beginning of my
deviceReady
handler.