cozy-drive
cozy-drive copied to clipboard
Local dev on Android 9
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.
<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" />