Skip to content

Flutter 一些坑 #34

@popeyelau

Description

@popeyelau

WebView 相关

if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) {
       webView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
}
webView.getSettings().setBlockNetworkImage(false);
  • iOS 允许混合模式 (info.plist)
<key>NSAppTransportSecurity</key>
 <dict>
   <key>NSAllowsArbitraryLoads</key>
   <true/>
  <key>NSAllowsArbitraryLoadsInWebContent</key>
  <true/>
</dict>

Metadata

Metadata

Assignees

No one assigned

    Labels

    FlutterFlutter 相关

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions