Page 1 of 1

URL does not open in the iframe on ios

Posted: Thu Aug 12, 2021 2:40 pm
by LProbert
It seems that Safari iOS wants to open the URLs that I am trying to load in an iframe into a new tab. Is this normal iOS behaviour for iframes?

Re: URL does not open in the iframe on ios

Posted: Thu Aug 12, 2021 3:52 pm
by Hopki
Hi,
By default, the web component opens a new page for Touch Screen devices.
The reason for this is that many use this component to open PDFs and iOS does not scroll PDF's in an iframe so to stop all the questions we set it so that all Touch Screen devices open a new page.
This is also true for the packaged default _v6 skins.

If you add a Web Component to a skin, select the Hotspot Template, ht_node.
Then look at the first action, it has an action filter with Has Touch, remove that line so it only shows *Opt_url.

Screenshot 2021-08-12 at 14.50.26.png
Screenshot 2021-08-12 at 14.50.26.png (38.15 KiB) Viewed 2644 times

Do the same for the other two actions.

This will now open an iframe in a mobile.

Re: URL does not open in the iframe on ios

Posted: Thu Aug 12, 2021 4:05 pm
by LProbert
I was one step ahead of you and spotted this in the skin.
The URLs that open in iframes fine within Chrome (ios) open in new tabs in Safari on iOS. This could potentially be an issue with PDF files and security. There's also some cross-domain links that work ok on desktop but maybe not on Safari which is much stricter it seems.