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

Getting error Unsupported value: <FlutterError: 0x60c000225500> of type FlutterError #49

Open
manujbahl opened this issue Mar 22, 2018 · 3 comments

Comments

@manujbahl
Copy link

manujbahl commented Mar 22, 2018

Do you know what that error means?

Here is the code I added. Same happens with full screen WebViewScaffold.

flutterWebviewPlugin.launch("http://www.cnn.com",
rect: new Rect.fromLTWH(
0.0, 0.0, MediaQuery.of(context).size.width, 300.0),
userAgent: kAndroidUserAgent);

@manujbahl
Copy link
Author

I think it is the http vs https issue. I get that error on iOS when visiting an http link.
Is there a workaround?

@mikowm
Copy link

mikowm commented Mar 23, 2018

Yes, the reason is that you're trying to load an HTTP URL. You can change the .plist file (Info.plist) in your project to add an exception for specific domains or disable App Transport Security (ATS) to allow all connections. You can find the code for both solutions here.

@lejard-h
Copy link
Collaborator

Hi, do you still have this issue ?

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

3 participants