Finally got my MZ test game on my Android!

I followed another tutorial first, but unfortunately there was a problem that I couldn't solve, here was the problem with the black screen, but I had already gotten a solution from the previous tutorial:
What helped me is to add the following to the 'index.html' in the project at <body style="background-color: black">:
onload="window.focus()"
So it should look like that:
<body style="background-color: black" onload="window.focus()">
Here is an example of my index.html:
HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="user-scalable=no">
<link rel="icon" href="icon/icon.png" type="image/png">
<link rel="apple-touch-icon" href="icon/icon.png">
<link rel="stylesheet" type="text/css" href="css/game.css">
<title>TestProject</title>
</head>
<body style="background-color: black" onload="window.focus()">
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>
EDIT: Game was exported with
MZ. Works perfect.
EDIT2: For "portrait"-Mode that didn't worked, I also found another solution (I don't know if this works with MV too): open "rmmz_managers", go to line 2109 and add
return true;
So it's look like this:
JavaScript:
SceneManager.isGameActive = function() {
return true;
// [Note] We use "window.top" to support an iframe.
try {
return window.top.document.hasFocus();
} catch (e) {
// SecurityError
return true;
}
};