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
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_inappwebview_ios","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.1.2/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_inappwebview_android","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_android-1.1.3/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_inappwebview_macos","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/","native_build":true,"dependencies":[]}],"linux":[],"windows":[{"name":"flutter_inappwebview_windows","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_windows-0.6.0/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_inappwebview_web","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_web-1.1.2/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_inappwebview","dependencies":["flutter_inappwebview_android","flutter_inappwebview_ios","flutter_inappwebview_macos","flutter_inappwebview_web","flutter_inappwebview_windows"]},{"name":"flutter_inappwebview_android","dependencies":[]},{"name":"flutter_inappwebview_ios","dependencies":[]},{"name":"flutter_inappwebview_macos","dependencies":[]},{"name":"flutter_inappwebview_web","dependencies":[]},{"name":"flutter_inappwebview_windows","dependencies":[]}],"date_created":"2025-01-08 19:22:57.405422","version":"3.27.1","swift_package_manager_enabled":false}
1
+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_inappwebview_ios","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.1.2/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_inappwebview_android","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_android-1.1.3/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_inappwebview_macos","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/","native_build":true,"dependencies":[]}],"linux":[],"windows":[{"name":"flutter_inappwebview_windows","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_windows-0.6.0/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_inappwebview_web","path":"/Users/faraz/.pub-cache/hosted/pub.dev/flutter_inappwebview_web-1.1.2/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_inappwebview","dependencies":["flutter_inappwebview_android","flutter_inappwebview_ios","flutter_inappwebview_macos","flutter_inappwebview_web","flutter_inappwebview_windows"]},{"name":"flutter_inappwebview_android","dependencies":[]},{"name":"flutter_inappwebview_ios","dependencies":[]},{"name":"flutter_inappwebview_macos","dependencies":[]},{"name":"flutter_inappwebview_web","dependencies":[]},{"name":"flutter_inappwebview_windows","dependencies":[]}],"date_created":"2025-03-10 21:29:04.223404","version":"3.27.1","swift_package_manager_enabled":false}
@@ -230,27 +244,39 @@ Modify the `<head>` tag of your `web/index.html` to load the JavaScript, like so
230
244
</head>
231
245
```
232
246
247
+
### `Outgoing Connections(Client)` (macOS only)
233
248
234
-
## Frequently Asked Questions
235
-
- **The 3D model could not load** : First check the example, if models in examples loads, may be there is problem with your model or your model path.
236
-
- **The animation list could not be retrieved** : Check if there are any special characters in the animation names that might cause a JSON encoding error.
237
-
- **The 3D model could not load from url** : It might be due to [CORS] security restrictions. The server hosting the model file *must* send appropriate CORS response headers for viewer to be able to load the file. See [google/model-viewer#1015](https://github.com/google/model-viewer/issues/1015)
249
+
For loading 3D models in *macOS* you need to configure the macOS App Sandbox by *enabling* the `Outgoing Connections (Client)` option in your `MacOS` XCode Project, under `Runner > Signing & Capabilities`.
**Problem Description** : If you're having trouble loading 3D models from a URL on a real iOS device, **Lockdown Mode** might be the cause. Lockdown Mode is a security feature in iOS that restricts certain functionalities like network requests or loading embedded content to protect user data.
253
+
### `AppDelegate.html` (macOS only)
242
254
243
-
### How to Disable Lockdown Mode
244
-
Follow these steps to disable Lockdown Mode on your device:
255
+
Add the following codes to your macOS `AppDelegate` file to support transparent background for *flutter_3d_controller*
245
256
246
-
1. Open the **Settings** app on your iPhone.
247
-
2. Scroll down and select **Privacy and Security**.
248
-
3. Tap on **Lockdown Mode**.
249
-
4. Select **Turn Off Lockdown Mode**. You may need to enter your password to confirm.
250
-
5. After disabling Lockdown Mode, return to the app and try loading the 3D model again.
257
+
```swift
258
+
import flutter_inappwebview_macos
251
259
252
-
---
260
+
extension InAppWebView {
261
+
@objc public override func viewDidMoveToWindow() {
262
+
super.viewDidMoveToWindow()
263
+
264
+
if window != nil {
265
+
print("InAppWebView moved to window, enforcing transparency")
- **Desktop(macOS) rare issues** : You may experience unexpected issues in desktop(macOS) beta version.
276
+
- **The 3D model could not load** : First check the example, if models in examples loads, may be there is problem with your model or your model path.
277
+
- **The animation list could not be retrieved** : Check if there are any special characters in the animation names that might cause a JSON encoding error.
278
+
- **The 3D model could not load from url** : It might be due to [CORS] security restrictions. The server hosting the model file *must* send appropriate CORS response headers for viewer to be able to load the file. See [google/model-viewer#1015](https://github.com/google/model-viewer/issues/1015)
253
279
254
-
## More Info
255
280
281
+
## More Info
256
282
This package uses Google's [model-viewer](https://modelviewer.dev) to render 3D models and it may have some issue in rendering some models/textures, the core of package (Model Viewer) will change in future to support all type of 3D models.
0 commit comments