Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(mobile): allow HTTP sync on Android
Elian Doran2b447c559548
diff --git a/apps/mobile/android/app/src/main/AndroidManifest.xml b/apps/mobile/android/app/src/main/AndroidManifest.xmlindex b06ddbfd89..4ce80bc827 100644--- a/apps/mobile/android/app/src/main/AndroidManifest.xml+++ b/apps/mobile/android/app/src/main/AndroidManifest.xml@@ -5,6 +5,7 @@android:allowBackup="true"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"+ android:networkSecurityConfig="@xml/network_security_config"android:roundIcon="@mipmap/ic_launcher_round"android:supportsRtl="true"android:theme="@style/AppTheme">diff --git a/apps/mobile/android/app/src/main/res/xml/network_security_config.xml b/apps/mobile/android/app/src/main/res/xml/network_security_config.xmlnew file mode 100644index 0000000000..ec61a069a9--- /dev/null+++ b/apps/mobile/android/app/src/main/res/xml/network_security_config.xml@@ -0,0 +1,7 @@+<?xml version="1.0" encoding="utf-8"?>+<network-security-config>+ <!-- Allow cleartext (plain HTTP) traffic to any host.+ Trilium users commonly self-host sync servers on LAN IPs or+ personal domains without TLS. -->+ <base-config cleartextTrafficPermitted="true" />+</network-security-config>