Closed louisdeveseleer closed 4 years ago
Potential workaround: https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted
@louisdeveseleer Thanks for reporting. Could you give me more details on your Android emulator configuration, in particular the Android version, so that I can figure out how to reproduce this?
Thanks, going to try the fixes now. The emulator Android version is 11 and the physical device (same behavior) Android version 10.
Fixed!
Edit AndroidManifest.xml
, has to be done for target API level 28 and higher apparently.
<application
android:usesCleartextTraffic="true"
Also, I had an error running the demo, because of background being null, so I added
backgroundColor: Colors.white,
and that got it working!
I don't know what the FAB is supposed to do, it throws this error when i click on it:
b/117267690: Failed to get fallback IMM with expected displayId=14 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{3728db1 VFEDHVC.. .F...... 0,0-768,1024}
Thanks for this package, it's an awesome 3D viewer.
I've released 0.8.1 just now that addresses these issues.
I don't know what the FAB is supposed to do, it throws this error when i click on it:
Do you mean the "launch AR" button in the lower right corner? That only works on physical devices, so on an emulator you'd get that error logged.
Testing the demo app on the emulator and on my Android device, I get the same error: Webpage not available. The webpage at http:/127.0.0.1:46085/ could not be loaded because:
net::ERR_CLEARTEXT_NOT_PERMITTED
Console output:
Main file: