-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to click on the AR preview button in iOS results in error #8
Comments
Could you please record? ARView should be only available for android devices, even the button should not appear. |
@omchiii That doesn't seem entirely logical. In the documentation it says RPReplay_Final1646039656.MP4Anyway, I've attached my screenrecording: |
Thank you. You are right. Will have a look into it. |
This package use WebView for the display of model-viewer on Android & iOS. On iOS Platform, after you click on the AR preview button, model-viewer will redirect the browser to the usdz file's url. According to react-native-webview/react-native-webview#1242 (comment) , to open usdz model in AR Quick Look, iOS WebView should be SFSafariViewController instead of WKWebView. This package uses webview_flutter which is backed by a WKWebView, so I think that's the problem. I have no experience on iOS development. A less elegant solution I made in 7974cd6 is: using url_launcher to open the usdz file in SFSafariViewController, and then you can open it in AR Quick Look. Hoping there can be a more elegant solution. |
Describe the bug
on iOS (with a usdz file) the model loads, but when i click on the AR button the following error occurs in the terminal:
To reproduce
on iOS 15.3, load any usdz file into the
ModelViewer
widget and click on the AR button. Could be checked out via the example project.Smartphone (please complete the following information):
Device: iPhone 12 pro max
OS: iOS 15.3.1
Version: 1.1.2
The text was updated successfully, but these errors were encountered: