Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local dev on Android 9 #2091

Open
Crash-- opened this issue Aug 6, 2020 · 1 comment
Open

Local dev on Android 9 #2091

Crash-- opened this issue Aug 6, 2020 · 1 comment

Comments

@Crash--
Copy link
Contributor

Crash-- commented Aug 6, 2020

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.

@JF-Cozy
Copy link
Contributor

JF-Cozy commented Nov 23, 2021

<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" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants