I'm trying to start up my app in Android browser. If the method start() is invoked by timer, the broken link appears. If the button is pressed, start() will run the app. Please, could you help me.
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Test page</title>
</head>
<body>
<button onclick="start()">Button</button>
<script>
setTimeout(function() {
start();
}, 3000);
function start() {
window.open("http://com.xxx/xxx-services/user/reset-password/12345", "_self")
}
</script>
</body>
</html>