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

ios error Unsupported value: <FlutterError: 0x60c000031080> of type FlutterError #36

Closed
iigacon opened this issue Feb 7, 2018 · 6 comments

Comments

@iigacon
Copy link

iigacon commented Feb 7, 2018

I load with url on ios:
http://liveole.com/livescore-detail/basel-manchester-city-results22646
error log:
Unsupported value: <FlutterError: 0x60c000031080> of type FlutterError

@lejard-h
Copy link
Collaborator

Do you still have the error ? and do you have a longer stacktrace ?

@Gustik
Copy link

Gustik commented Feb 28, 2018

I have same problem on ios simulator

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v0.1.7, on Mac OS X 10.13.3 17D47, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
[✓] Android Studio (version 3.0)
[✓] Connected devices (1 available)

• No issues found!

my widget

class DocumentPage extends StatelessWidget {
  DocumentPage();
  @override
  Widget build(BuildContext context) {
    return new WebviewScaffold(
      url: "http://www.google.com",
      appBar: new AppBar(
        title: new Text('hello'),
      ),
      withJavascript: true,
    );
  }
}

and error log

Launching lib/main.dart on iPhone X in debug mode...
Running pod install...
Running Xcode clean...
Starting Xcode build...
Xcode build done
Syncing files to device iPhone X...
Unsupported value: <FlutterError: 0x6000002210c0> of type FlutterError

@Gustik
Copy link

Gustik commented Feb 28, 2018

opens only https sites

@jparound30
Copy link
Contributor

I think this problem is caused by ATS( App Transport Security ).

You can avoid it by setting the following settings in Info.plist.

    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>

@Gustik
Copy link

Gustik commented Mar 6, 2018

Thank you jparound30! Its works.

@AskYous
Copy link

AskYous commented Aug 21, 2018

Hello.

I have no idea what Info.plist is. How do I add the shared code to it? Do I add it at the end of the file? Beginning?

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

No branches or pull requests

5 participants