Android redirect does not work

I would suggest :

location.assign('someUrl');

It's a better solution as it keeps history of the original document, so you can navigate to the previous webpage using back-button or history.back() as explained here.


Android supports document.location without the href property

Try to use:

function redirect(uri) {
  if(navigator.userAgent.match(/Android/i)) 
    document.location=uri;      
  else
    window.location.replace(uri);
}

I think it should be window.location.href, not document.location.href.