Skip to content

[webview_flutter] Error on iOS: Trying to embed a platform view but the PaintContext does not support embedding  #39616

@wilburx9

Description

@wilburx9

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer: crowdAffects or could affect many people, though not necessarily a specific customer.p: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions