Hi there,
I am wondering. I scan a QR code in my phone that shows this screen:
My Question is how to close this screen/application?
regards and thanks
Hello @IQ78,
If I understand correctly, you want the screen to automatically close or redirect after it opens from the QR code; while you cannot actually close the browser tab, you can either add a button that redirects the user to another URL or automatically redirect after a short countdown, which can be done with a simple JavaScript setTimeout loop showing “5 → 0” before navigating, or even without JavaScript by using OutSystems logic only: create a local variable for the counter, run a client action on screen load with a 1-second Wait, decrement the counter, and when it reaches zero redirect to another url.
Thank you Sir, I still don't know, what browser the phone is using for the screen. I do not think it is a Chrome or IE.
So, for closing that screen, we can only trick by redirection, cannot just close it as there are so many QRs to scan to for attendance app?
regards
You’re very welcome,
I guess you can close it using js code like window.close() ,but redirecting the screen is the best and most common approach in my opinion. Most web and mobile apps do this after completing an action like an online payment, the page says “Payment successful, please wait…” and then automatically redirects after a few seconds. This is likely the behavior you’re aiming for, and it can be implemented easily with a timed redirect.