I am using a Web asset to display some client content, but there is a pop-up that comes up that the client does want on their website, but doesn’t want on their touchscreen app displaying the website. I tried putting an empty button over the close box for the pop-up, but the simulate touch action doesn’t touch the website even though the button is blank.
I realize this isn’t a use case scenario that occurs very often, but it would be cool to be able to simulate a touch at a coordinate on a Web asset or HTML asset for things that are clickable on websites.
It would be cool, but as far as I know, it would also be a huge security issue, if for example a website could inject a touch event on the “Accept all terms & conditions” button and do it without the actual consent of the user.
I’ll double check with our product team, but from my understanding, when using a Web Browser Asset or the HTML Frame, the content of these assets is like a black box to the rest of the XP, and we can’t do anything on that content from “the outside”.
The solution is usually on the client side: they don’t want to display their regular website, they want to display a public-facing version with less privacy concerns / cookies / things to be accepted through that pop-up. It’s up to them to create that second version of the website, which is usually done through an “Embed” component used in an iframe.
I hadn’t considered that, but the potential for harm is there so that makes sense. I’ll let the client know that we should schedule a call with their web dev to make a copy of that webpage without the pop-up and provide me with the URL.