flexcapacitor icon indicating copy to clipboard operation
flexcapacitor copied to clipboard

Webview javascript injection won't work on latest Android versions

Open louisptremblay opened this issue 10 years ago • 1 comments

On Android 5.1 (tested on Galaxy S6), the javascript injection won't work as is (and pages using measureContent won't load).

If we do document.location = {some json}; it won't fire the location changing event as it did in Android 4. The workaround is to use document.location = fakeprotocol://{some json} Then parse it out in the event handler

Other than this, thank you for a very useful component

louisptremblay avatar Nov 02 '15 17:11 louisptremblay

Thanks!

velara3 avatar Nov 09 '15 22:11 velara3