Post

Replies

Boosts

Views

Activity

Custom Action on AR Quick Look didn't work
Hello, I'm trying to use the Custom Action on a Custom banner of the AR Quick View. I have a custom banner with my own html already loaded in the AR Quick View with this button: <a href="https://www.google.com" target="_blank" id="ar-link">Check Now</a> So I'm trying to capture the event with this: const linkElement = document.getElementById("ar-link"); linkElement.addEventListener("message", function(event) { if (event.data == "_apple_ar_quicklook_button_tapped") { window.location.href = "https://www.google.com" }, false); But when I tap on the custom banner, i get the previous page so it seems not working. Do you know how to fix this? How is supposed to work and if this is available on the AR quick view from iOS browser or have some limitations? Thanks in advance, is really weird to not been able to find more examples about this.
2
0
1.1k
Oct ’22