cozy-drive icon indicating copy to clipboard operation
cozy-drive copied to clipboard

Local dev on Android 9

Open Crash-- opened this issue 4 years ago • 1 comments

Since Android 9, there is some restriction about loading file with no secure context.

In order to work, we need to add at the top of config.xml

+    <access origin="*" />
+    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
+        <application android:usesCleartextTraffic="true" />
+    </edit-config>
+    <allow-navigation href="*" />

But I don't want this patch lands in master like that. We should only activate this clearTextTraffic only when developing.

Crash-- avatar Aug 06 '20 13:08 Crash--

<access origin="*" /> est déjà dans le config.xml. <allow-navigation href="*" /> ne semble pas utile visiblement on a déjà un bloc <edit-config file="app/src/main/AndroidManifest.xml" il suffit donc juste de rajouter dedans la ligne <application android:usesCleartextTraffic="true" />

JF-Cozy avatar Nov 23 '21 14:11 JF-Cozy