Blog
This has the worst code I've written. The string I was passing into the WebView failed to parse (HTML document) so I had to convert it into a string interpolated, comma-separated sequence of 8 bit integers, then on the corresponding window message, split and turn back into data and read back as a string. It’s so much unnecessary work that it hurts. But then I had to wrap it in a setTimeout because on Android, this fails to execute.