I get ERR_CLEARTEXT_NOT_PERMITTED
for Android and blank page for iOS when I use http://
URLs.
https://
URLs seem to work.
The very same http://
URLs work fine in Chrome.
I recall I had the same problem in native Android as well some year ago.
Is it possible to tell webview "please use http://
. I will take the risk"?
I'm using webview_flutter: ^0.3.2+1
1) For Android check ./android/app/src/main/AndroidManifest.xml
<manifest ....
....
**<uses-permission android:name="android.permission.INTERNET" />**
<application
**android:usesCleartextTraffic="true"**
</application>
...
</manifest>
2) For ios you need to modify the info.plist ./ios/Runner/info.plist
Add the following:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
3) After that do flutter clean for your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With