Comments (2)
May be webview permissions. Resource loading request? Try adding the webview handlers for console messages and see if any errors in the javascript runtime for your webview.
from flutter.
May be webview permissions. Resource loading request? Try adding the webview handlers for console messages and see if any errors in the javascript runtime for your webview.
I've been working on integrating a WebView in my iOS app this web view will run the WebGL game, that needs to connect to a game server operating over HTTP. Despite configuring the App Transport Security settings to allow arbitrary loads and disabling CORS, the WebView fails to connect to the server. Here are the steps I've taken:
I've set NSAllowsArbitraryLoads and NSAllowsArbitraryLoadsInWebContent to true in the Info.plist to bypass ATS restrictions for HTTP connections:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
CORS has been disabled on the server side to ensure there are no access-control issues during HTTP requests.
However, the WebView still cannot establish a connection to the server. I suspect the issue might be with how WebViews handle HTTP content, or perhaps there's an overlooked setting in iOS or the WebView configuration.
from flutter.
Related Issues (20)
- Updated layout information required for RenderIndexedSemantics#1efe6 relayoutBoundary=up3 NEEDS-LAYOUT NEEDS-PAINT to calculate semantics. HOT 3
- Make it easy to use `clangd` (i.e. an IDE) with the engine (especially post-RBE) HOT 3
- after updating to `Flutter Channel stable, 3.22.0` `flutter build` works but the build using the Xcode project doesn't work anymore. HOT 2
- [camera_android_camerax] Setting exposure compensation index was canceled due to the camera being closed or a new request being submitted HOT 2
- Wasm export loads both js and wasm. HOT 1
- Clang tidy not picking up all diagnostics in some code HOT 3
- Collapsing the software keyboard doesn't lose the focus from textfield in 3.22.0, while it worked in 3.19.6 HOT 15
- Software keyboard flickers when focus moves between TextFields (3.22.0) HOT 2
- Hint Text not aligned at center in DropdownButtonFormField (3.22.0) HOT 2
- [tool_crash] SessionNotCreatedException HOT 1
- Video Player Issue HOT 3
- Webview_flutter canGoBack problem in Separate Window HOT 6
- [macOS]: PathNotFoundException when building app with flavours HOT 5
- Missing Colors at Specific Zoom Levels When Using JSON Style HOT 3
- I am using flutter and serverpod for developing a webapp . it gives me an error like this: HOT 1
- Dropdowns have accessibility focus issues HOT 3
- Grey screen Errors in Release Mode HOT 3
- "flutter build web" specifying output not working since flutter upgrade to 3.22 (from 3.16) HOT 4
- Build fails with error: 'The argument type 'PageController?' can't be assigned to the parameter type 'ScrollController'' after updating to Flutter 3.22.0 HOT 2
- Numpad input issue in web build HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.