Google Model-viewer

0 views
Skip to first unread message

Leontina Heidgerken

unread,
Aug 3, 2024, 5:24:15 PM8/3/24
to flaksencoworl

We use the Google APP, com.google.android.googlequicksearchbox to display interactive 3D models on Android.The model displays in 'ar_preferred' mode by default, Scene Viewer launches in AR native mode as the entry mode.If Google Play Services for AR (ARCore, com.google.ar.core) isn't present, Scene Viewer gracefully falls back to 3D mode as the entry mode.

To use this widget on Android 9+ devices, your app must be permitted to make an HTTP connection to :XXXXX.Android 9 (API level 28) changed the default for android:usesCleartextTraffic from true to false,so you will need to configure your app's android/app/src/main/AndroidManifest.xml as follows:

To use this widget on iOS, you need to opt-in to the embedded views previewby adding a boolean property to your app's ios/Runner/Info.plist file, withthe key io.flutter.embedded_views_preview and the value YES:

./assets/packages/model_viewer_plus/assets/model-viewer.min.js will use the default js file which is included in this package's asset. The official site uses unpkg, by using @google/model-viewer/dist/model-viewer.min.js, you are using the latest version of . You may replace thevalue of src attribute with another CDN mirror's URL. But please notice that our model-viewer-plus maybe not able to keep up with the 's latest version.

For example, the stock Chrome version on the Android 10 emulator is too oldand will display a blank screen; it must be upgraded from the Play Store inorder to use this package. (The stock Chrome version on the Android 11emulator works fine, however.) See google/model-viewer#1109.

It might not be possible to load the model URL due to CORS securityrestrictions. The server hosting the model file must send appropriateCORS response headers for Model Viewer to be able to load the file.See google/model-viewer#1015.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages