Quicklook banner button tapped event not working for URL redirect #2755
Unanswered
karthickRamadoss
asked this question in
Q&A
Replies: 2 comments 17 replies
-
I have no idea, but it sounds more like a Quick Look / Safari issue to me. |
Beta Was this translation helpful? Give feedback.
17 replies
-
For future reference, this was addressed with: #3850 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Quicklook banner button tapped event not working for URL redirect, Please find code snippet
### html model viewer code
ios- src="customIos.usdz#applePayButtonType=buy&checkoutTitle=Biplane%20Toy&checkoutSubtitle=Rustic%20finish%20with%20rotating%20propeller&price=$15"
### Java script callback for banner action
const linkElementNew = document.getElementById("customID");
linkElementNew.addEventListener("message", function (event) {
if (event.data == "_apple_ar_quicklook_button_tapped") {
window.location.assign('https://www.youtube.com/')
}
}, false);
It always returns back to previous page .Any suggestions for this issue.
Beta Was this translation helpful? Give feedback.
All reactions