llaske / sugarizer

Sugarizer is a web implementation of the Sugar platform to run on any device or browser
https://sugarizer.org
Apache License 2.0
198 stars 411 forks source link

Unable to connect to HTTP server on Android 9 #861

Closed llaske closed 3 years ago

llaske commented 4 years ago

When attempting to connect to a Sugarizer Server using HTTP on an Android 9 device, there is an error "Remote server not responding".

Screenshot_20200927-150608

When leaving the Sugarizer Android application and trying to connect to the same server with the browser on the device, it works.

Changing HTTP to HTTPS solve the issue. Issue is the same on Android 10, it works on Android 8.

llaske commented 4 years ago

It's related to a limitation of Android 9+ that forbid by default the use of HTTP in Web View. See here. Thought it's possible to force back this behavior, it sounds reasonable.

So this commit now use HTTPS for the default Sugarizer Server.