You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building an app that allows users to view 3D models with native AR functionality. The model files are hosted on S3, and I want to open them in AR using:
Scene Viewer on Android
Quick Look on iOS
Problem
How can I correctly open a .usdz file from Tauri with:
Scene Viewer on Android
Quick Look on IOS
These are the default applications to use for .usdz file formats. In the web (chrome and safari tested) it works for IOS by using an anchor element with rel=ar and for android by appending the intent intent://arvr.google.com/scene-viewer/1.2?
What I’ve Tried
Using tauri::api::shell::open() and opener plugin with the file url for the USDZ model file.
Using an intent protocol with the file url (scene-viewer) e.g. intent://arvr.google.com/scene-viewer/1.2?file=...s3_url#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=... --> Error: net::ERR_UNKNOWN_URL_SCHEME
Using the ar relation on an anchor element with the file url (quicklook) --> No action when the anchor is clicked
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Context
I'm building an app that allows users to view 3D models with native AR functionality. The model files are hosted on S3, and I want to open them in AR using:
Problem
How can I correctly open a .usdz file from Tauri with:
These are the default applications to use for .usdz file formats. In the web (chrome and safari tested) it works for IOS by using an anchor element with rel=ar and for android by appending the intent
intent://arvr.google.com/scene-viewer/1.2?
What I’ve Tried
intent://arvr.google.com/scene-viewer/1.2?file=...s3_url#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=...
--> Error: net::ERR_UNKNOWN_URL_SCHEMEAny help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions