ar-quick-look allowsContentScaling with blob

I found that to disable scalling of model in AR it's enough to add "#allowsContentScaling=0" to url.
I use threejs library and convert my model using their internal USDZExporter and store it as blob. And after adding it to the end of url it doesn't show model at all.
What is the way of disabling scalling of model when url is a path to blob object already stored in a browser?

Example:
<a id="safariARbuttonLink" rel="ar" href="blob:http://localhost:50000/2bd52a27-2ed8-4b46-87d5-2faa889ad5cd#allowContentScalling=0" download="asset.usdz" style="display: none">
<img id="safariARbutton" width="100" src="../../images/arkit.png">
</a>

Url was created using "URL.createObjectURL( blob )".
  • Same issue for me. It appears that when loading USDZ as a blob from mobile Safari, any / all additional URL fragments parameters are ignored by AR QuickLook, including allowsContentScaling , callToAction , checkoutTitle , checkoutSubtitle , price , applePayButtonType , custom , customHeight , canonicalWebPageURL

Add a Comment

Replies

Same for me, but i'm trying to add Custom Action by "#callToAction=..." and another params. It works perfectly if i use direct link, but nothing there if i use blob.

Progress on this issue is being tracked on the WebKit Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=226265

This looks to be resolved in iOS 15.5 beta 4 (19F5070b). So far I have tested opening USDZ as blob in AR QuickLook along with #allowsContentScaling=0 parameter, and the model does now load and QuickLook does indeed correctly prevent user from scaling the 3D model. Great! I've not yet tested with the other fragment parameters.