FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
03-08-2023 03:44 PM
We are using a touch hardware (WR21 panel) with android 10. Within the WebIQ application we are able to set the browser into fullscreen mode (with a UI action). But when we using the LOGOUT function, the fullscreen mode of the browser is leaving. Can we stop this somehow?
Solved! Go to Solution.
03-08-2023 04:14 PM
WebIQ logout does nothing else than reloading the current URL thereby breaking the authenticated websocket connection and requiring a relogin.
If your Android browser closes when the URL is changed or reloaded this is not done by WebIQ.
Would be interesting to know what happens when you open this page in the Android browser the same way and click on the button:
https://www.smart-hmi.com/demo/close.html
That's just a very simple HTML page I just created:
<!DOCTYPE html>
<html>
<head>
<title>Close</title>
</head>
<body>
<h4>Click the button to reload the current page</h4>
<button onclick="location.reload();">Reload</button>
</body>
</html>
03-09-2023 11:12 AM
Thanks for your reply. I think the problem is coming from the fullscreen request. I'm using the following within WebIQ-application:
var elem = document.documentElement;
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.webkitRequestFullscreen) { /* Safari */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE11 */
elem.msRequestFullscreen();
}
or
2.
<button onclick="document.documentElement.requestFullscreen();">Fullscreen</button>
This functions are not the same like F11. With F11 the fullscreen mode isn't leaving when we do a refresh (F5) or LOGOUT. Do you have any hint to this fullscreen request?
03-09-2023 11:27 AM
You did not mention previously that you're using custom code. Thefeore this is not a WebIQ question, but a general web development question that has been answered before, e.g. here: https://stackoverflow.com/questions/44878667/javascript-fullscreen-closes-on-changing-page
"Note: Navigating to another page, changing tabs, or switching to another application using any application switcher (or Alt-Tab) will likewise exit fullscreen mode."
https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API