External links Phaser 3 iOS

Trying to have links to external pages. This code works really well in both Chrome (desktop and mobile) and Safari (only desktop). Unfortunately in iOS Safari on user click on the button, the link is blocked as a pop-up, which to my understanding shouldn’t happen since window.open is triggered by user action. (the issue here is that if the user is not allowing pop ups in safari settings, it will look like the page doesn’t work at all)

linksb1.setInteractive();
linksb1.on(“pointerdown”, () => {
window.open(“website”, “_blank”);
});

I’m using Phaser 3.16, so to my understanding from the documentation addUpCallback is not required anymore. I’ve tried the following, with no better results.
http://labs.phaser.io/view.html?src=src\input\dom%20events\add%20up%20callback.js

thanks!

I think it needs to be pointerup event.

1 Like

this was tremendously trivial, thanks for the help.