Skip to content

Commit e07dd4e

Browse files
committed
Allow cleartext HTTP for self-hosted server connections
Android 9+ blocks cleartext traffic by default. CashPilot connects to a user-configured server that often runs HTTP on local networks.
1 parent c7c8d90 commit e07dd4e

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
android:roundIcon="@mipmap/ic_launcher_round"
3434
android:label="@string/app_name"
3535
android:supportsRtl="true"
36+
android:networkSecurityConfig="@xml/network_security_config"
3637
android:theme="@style/Theme.CashPilotAndroid">
3738

3839
<activity
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<!-- CashPilot connects to a user-configured server that may use HTTP on local networks -->
4+
<base-config cleartextTrafficPermitted="true">
5+
<trust-anchors>
6+
<certificates src="system" />
7+
</trust-anchors>
8+
</base-config>
9+
</network-security-config>

0 commit comments

Comments
 (0)