-
Notifications
You must be signed in to change notification settings - Fork 30.2k
[webview_flutter] Error on iOS: Trying to embed a platform view but the PaintContext does not support embedding #39616
Copy link
Copy link
Closed
Labels
customer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.p: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
I attempted to use the WebView plugin but got this error on iOS:
Trying to embed a platform view but the PaintContext does not support embedding
But this already exists in my project Info.plist:
<key>io.flutter.embedded_views_preview</key>
<true/>
Please is there anything I am missing.
Also, if I remove that from my Info.plist, I get both:
Trying to embed a platform view but the PaintContext does not support embedding
and
Trying to embed a platform view but the PrerollContext does not support embedding
Doctor summary
[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.14.6 18G87, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.5)
[✓] Connected device (2 available)
• No issues found!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
customer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.p: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically