Replies: 3 comments
-
Okay, looks like this can be resolved by adding a listener for the |
Beta Was this translation helpful? Give feedback.
-
Indeed, you've found our solution. That is interesting that you're using the focus event for detecting the native app returning. If that's reliable enough across iOS and Android I'd consider firing |
Beta Was this translation helpful? Give feedback.
-
It sort-of makes sense on iOS that it would fire the window focus event, because I think Safari launches a separate app to handle the quicklook preview functionality. But, of course, with webXR we stay on the webpage, so no onfocus event gets fired. |
Beta Was this translation helpful? Give feedback.
-
Description
Window on focus event is not fired when the model viewer AR window is closed and you're returned back to the webpage you launched it from. Or is there another way to detect that the model viewer webxr window has been closed? On iOS, as soon as the QuickLook AR preview is closed, this event is fired.
Live Demo
https://glitch.com/edit/#!/pointy-fantasy-moon
Version
Browser Affected
OS
Beta Was this translation helpful? Give feedback.
All reactions