# Livereload ERR\_CLEARTEXT\_NOT\_PERMITTED

**URL:** <https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487>\
**Category:** Ionic Framework\
**Created:** [May 9, 2019, 9:28am UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487 "2019-05-09T09:28:45Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![iAlexisan](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@iAlexisan](https://forum.ionicframework.com/u/iAlexisan)\
**Post date:** [October 23, 2019, 2:58pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/22 "2019-10-23T14:58:14Z")

</div>

Work’s for me thanks dude.

---

<div class="post-metadata">

**Author:** ![leonardofmed](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@leonardofmed](https://forum.ionicframework.com/u/leonardofmed)\
**Post date:** [November 19, 2019, 1:46pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/23 "2019-11-19T13:46:35Z")

</div>

I’m also unable to add the `<edit-config>` options to config.xml, but this solution worked!

---

<div class="post-metadata">

**Author:** ![kklindic](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@kklindic](https://forum.ionicframework.com/u/kklindic)\
**Post date:** [November 20, 2019, 9:43am UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/24 "2019-11-20T09:43:57Z")

</div>

This helped, thanks mate!

---

<div class="post-metadata">

**Author:** ![emilmammadov](https://avatars.discourse-cdn.com/v4/letter/e/cc9497/32.png) [@emilmammadov](https://forum.ionicframework.com/u/emilmammadov)\
**Post date:** [December 21, 2019, 10:34am UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/25 "2019-12-21T10:34:18Z")

</div>

Worked for me. Thanks!

---

<div class="post-metadata">

**Author:** ![Riyaz0001](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/riyaz0001/32/124695_2.png) [@Riyaz0001](https://forum.ionicframework.com/u/Riyaz0001)\
**Post date:** [January 21, 2020, 12:14pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/26 "2020-01-21T12:14:07Z")

</div>

Just Replace this:

```auto
<application android:networkSecurityConfig="@xml/network_security_config" />

```

and Add this:

```auto
<application android:usesCleartextTraffic="true" />

```

Example:

```auto
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
    <application android:usesCleartextTraffic="true" />
</edit-config>

```

I hope to solve your problem.

---

<div class="post-metadata">

**Author:** ![iozer](https://avatars.discourse-cdn.com/v4/letter/i/eb9ed0/32.png) [@iozer](https://forum.ionicframework.com/u/iozer)\
**Post date:** [February 12, 2020, 1:29pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/27 "2020-02-12T13:29:05Z")

</div>

> [@pabloo87](#):
>

Where is the config.xml ?

---

<div class="post-metadata">

**Author:** ![yns23](https://avatars.discourse-cdn.com/v4/letter/y/74df32/32.png) [@yns23](https://forum.ionicframework.com/u/yns23)\
**Post date:** [April 4, 2020, 2:24am UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/28 "2020-04-04T02:24:47Z")

</div>

i just run this command :

ionic cordova run android -l --ssl

---

<div class="post-metadata">

**Author:** ![ladaniavadh](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@ladaniavadh](https://forum.ionicframework.com/u/ladaniavadh)\
**Post date:** [May 7, 2020, 7:01am UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/29 "2020-05-07T07:01:16Z")

</div>

Add this line in config,xml for android, then remove platform and add it again then try

It should work

---

<div class="post-metadata">

**Author:** ![SoyJorgeDiaz5](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@SoyJorgeDiaz5](https://forum.ionicframework.com/u/SoyJorgeDiaz5)\
**Post date:** [July 28, 2020, 9:39pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/30 "2020-07-28T21:39:03Z")

</div>

Adding domain tag worked for me 👍

---

<div class="post-metadata">

**Author:** ![Hassan\_Mehmood](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@Hassan\_Mehmood](https://forum.ionicframework.com/u/Hassan_Mehmood)\
**Post date:** [November 4, 2020, 10:09am UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/31 "2020-11-04T10:09:16Z")

</div>

This one did the job for me.

---

<div class="post-metadata">

**Author:** ![clavesarmiento23](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@clavesarmiento23](https://forum.ionicframework.com/u/clavesarmiento23)\
**Post date:** [May 21, 2021, 12:52am UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/32 "2021-05-21T00:52:15Z")

</div>

For anyone encountered this on capacitor, open capacitor.config.json then inside the server object, just add **“cleartext”: true**

for reference:

> **[Capacitor: Cross-platform native runtime for web apps](https://capacitorjs.com/docs/config)**
>
> Build iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript

---

<div class="post-metadata">

**Author:** ![chesterhquick](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@chesterhquick](https://forum.ionicframework.com/u/chesterhquick)\
**Post date:** [June 30, 2021, 6:57pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/33 "2021-06-30T18:57:32Z")

</div>

Worked for me, thank you!

---

<div class="post-metadata">

**Author:** ![dartcounter](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@dartcounter](https://forum.ionicframework.com/u/dartcounter)\
**Post date:** [February 24, 2022, 1:45pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/34 "2022-02-24T13:45:32Z")

</div>

Is it possible to add a wildcard?  
For example I don’t know the IP of the device up front, but it will be something like 192.168.x.x  
I actually need to do something like: 192.168.\*  
But that doesnt work.  
I can add a static IP and that resolves the error, but it needs to be a wildcard.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![remsoft](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/remsoft/32/136847_2.png) [@remsoft](https://forum.ionicframework.com/u/remsoft)\
**Post date:** [April 26, 2022, 2:06pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/35 "2022-04-26T14:06:55Z")

</div>

Worked for me, thank you!

---

<div class="post-metadata">

**Author:** ![guidoBlocki](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/guidoblocki/32/142974_2.png) [@guidoBlocki](https://forum.ionicframework.com/u/guidoBlocki)\
**Post date:** [November 15, 2023, 3:06pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/36 "2023-11-15T15:06:54Z")

</div>

adding domain tag worked for me.  
`<domain>192.168.0.5<domain>`

in

`resources/android/xml/network_security_config.xml`

Thank you very much, this problem was giving me headaches.

---

<div class="post-metadata">

**Author:** ![IO-zlu](https://avatars.discourse-cdn.com/v4/letter/i/f19dbf/32.png) [@IO-zlu](https://forum.ionicframework.com/u/IO-zlu)\
**Post date:** [November 16, 2023, 9:47am UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/37 "2023-11-16T09:47:14Z")

</div>

It’s lovely to see even after 4 years people can resolve their issues with a few lines of text you’ve written 😄

I haven’t been working with Ionic for so long time now and cannot even remember writing these stuff.

---

<div class="post-metadata">

**Author:** ![guidoBlocki](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/guidoblocki/32/142974_2.png) [@guidoBlocki](https://forum.ionicframework.com/u/guidoBlocki)\
**Post date:** [November 16, 2023, 3:25pm UTC](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487/38 "2023-11-16T15:25:00Z")

</div>

ionic and its issues never rust 😅  
Greetings!

[Previous page](https://forum.ionicframework.com/t/livereload-err-cleartext-not-permitted/163487.md?page=1)
