epub_viewer
epub_viewer copied to clipboard
reading book fails-HtmlTask: HtmlTask failed java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted
When I try to read a book it sdtays on white screen, error is HtmlTask: HtmlTask failed java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted
fixed using the following
Manifest:
<application android:name="io.flutter.app.FlutterApplication" android:label="Flutter eBook App" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="true" android:networkSecurityConfig="@xml/network_security_config">
in network_security_config.xml, added this:
<base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" /> </trust-anchors> </base-config>