Skip to content
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

InAppWebView iOS #45

Closed
zakaryus opened this issue Feb 10, 2019 · 6 comments
Closed

InAppWebView iOS #45

zakaryus opened this issue Feb 10, 2019 · 6 comments

Comments

@zakaryus
Copy link

In the readme, it is mentioned that InAppWebView is currently only supported for Android, and you were waiting on the Flutter team before you could add iOS

InAppWebView: Flutter Widget for adding an inline native WebView integrated in the flutter widget tree. [Available only for Android (AndroidView) at this moment. For iOS, it will be available as soon as the Flutter team will release the corresponding dart class.].

I came across UiKitView today, and I was curious if that was the equivalent iOS class you were waiting on?

If so, I would greatly appreciate it if you would be able to get iOS support added for the InAppWebView.

Thanks for the great library!

@sageata
Copy link

sageata commented Feb 17, 2019

I desperately need that as well 👍

@pichillilorenzo
Copy link
Owner

Yeah guys, I know but these days I'm really busy due to my last Master's degree project exam! I think next week I could continue to work on this plugin! 👍. Sorry again!

@sageata
Copy link

sageata commented Feb 24, 2019

Good luck with completing your Master degree...

@juliengit2
Copy link

juliengit2 commented Mar 6, 2019

we also desperately need that, impatient to see it compatible on ios, I'm almost coming back here everyday to see if there is any evolution

@pichillilorenzo
Copy link
Owner

pichillilorenzo commented Mar 11, 2019

I'm happy to announce that I finally released the new version 0.6.0 with support for iOS inline native WebView integrated into the flutter widget tree! 😄

As said in the README.md file, to use InAppWebView class on iOS you need to opt-in for the embedded views preview by adding a boolean property to the app's Info.plist file, with the key io.flutter.embedded_views_preview and the value YES.

Let me know about any problems you will have.

@MarcelEdward
Copy link

Thank for the update.

Got it to run, but got this error:

[VERBOSE-2:platform_view_layer.cc(19)] Trying to embed a platform view but the PrerollContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(28)] Trying to embed a platform view but the PaintContext does not support embedding

After adding this to /ios/Runner/Info.plist it works:

<key>io.flutter.embedded_views_preview</key>
<true/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants