The openIOSARQuickLook function that's called internally inside activateAR() is asynchronous, but it is not awaited.
When an iOS src is provided it looks like it will resolve immediately, but when generating a local USDZ version of a GLTF file it will resolve after that process is complete.
The
openIOSARQuickLook
function that's called internally insideactivateAR()
is asynchronous, but it is not awaited. When an iOS src is provided it looks like it will resolve immediately, but when generating a local USDZ version of a GLTF file it will resolve after that process is complete.https://github.com/google/model-viewer/blob/6af7342d5bc8cde108636b2d95ecbc71a596de93/packages/model-viewer/src/features/ar.ts#L369-L374
https://github.com/google/model-viewer/blob/6af7342d5bc8cde108636b2d95ecbc71a596de93/packages/model-viewer/src/features/ar.ts#L197-L202