I'm using th following code to detect the end of a page is reached with javascript:
window.onscroll = function(ev) {
if (((document.documentElement && document.documentElement.scrollHeight) || document.body.scrollHeight)) {
alert("Bottom of page");
}
};
It works in chrome for desktop but not in the android webview