epub_viewer icon indicating copy to clipboard operation
epub_viewer copied to clipboard

reading book fails-HtmlTask: HtmlTask failed java.io.IOException: Cleartext HTTP traffic to 127.0.0.1 not permitted

Open amigax opened this issue 4 years ago • 1 comments

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

amigax avatar Nov 25 '21 14:11 amigax

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>

amigax avatar Nov 25 '21 14:11 amigax