Android: provide a way to enable cleartext HTTP #916
Labels
android
The issue relates to Android mobile support.
enhancement
New features, or improvements to existing features.
Is your feature request related to a problem? Please describe.
As mentioned at beeware/toga#1612, recent versions of Android disable unencrypted HTTP connections by default, even to localhost. This prevents writing apps which follow the server-and-WebView pattern.
This can be controlled using the following AndroidManifest settings:
usesCleartextTraffic
, which is all-or-nothing.networkSecurityConfig
, which lists specific domains or addresses.Describe the solution you'd like
Initially, I suggest we update the template to always set
usesCleartextTraffic="true"
, so users can run the Positron examples and write similar apps of their own.Later, we could provide some configuration mechanism in pyproject.toml.
The text was updated successfully, but these errors were encountered: