# Ionic-4-rest-api-calls-not-working-on-the-device

**URL:** <https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975>\
**Category:** Ionic Framework\
**Created:** [January 12, 2019, 2:43pm UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975 "2019-01-12T14:43:17Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [January 22, 2020, 8:29pm UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975/21 "2020-01-22T20:29:19Z")

</div>

That doesn’t sound like exactly the same problem as the post you replied to. I would start a new topic, and please try to post as much information as is needed for people to reproduce your situation.

---

<div class="post-metadata">

**Author:** ![Sandy1198](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@Sandy1198](https://forum.ionicframework.com/u/Sandy1198)\
**Post date:** [January 26, 2020, 1:32am UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975/22 "2020-01-26T01:32:55Z")

</div>

@karabillie I am solved this problem , from this link

> <https://stackoverflow.com/questions/56434698/why-is-the-error-err-cleartext-not-permitted-with-cleartext-for-the-http-traffic/59116123#59116123>

---

<div class="post-metadata">

**Author:** ![universaljegan](https://avatars.discourse-cdn.com/v4/letter/u/a88e4f/32.png) [@universaljegan](https://forum.ionicframework.com/u/universaljegan)\
**Post date:** [April 12, 2020, 8:34am UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975/23 "2020-04-12T08:34:05Z")

</div>

in AndroidManifest.xml add the android:usesCleartextTraffic=“true” as like following.

---

<div class="post-metadata">

**Author:** ![MariePaule](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@MariePaule](https://forum.ionicframework.com/u/MariePaule)\
**Post date:** [August 6, 2020, 1:07pm UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975/24 "2020-08-06T13:07:28Z")

</div>

It worked for me thanks I could not display the data coming from my rest api in the versions of android 9 and 10 and because the more recent versions of android do not accept unsecured data that is to say unencrypted and it is therefore necessary to make these data secure by securing the address containing the rest service.

---

<div class="post-metadata">

**Author:** ![danielwish](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@danielwish](https://forum.ionicframework.com/u/danielwish)\
**Post date:** [August 24, 2020, 7:39pm UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975/25 "2020-08-24T19:39:58Z")

</div>

This works for me!

thank you so much… i was going crazy @\_@

---

<div class="post-metadata">

**Author:** ![SamiranInceptory](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SamiranInceptory](https://forum.ionicframework.com/u/SamiranInceptory)\
**Post date:** [October 7, 2020, 6:58pm UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975/26 "2020-10-07T18:58:20Z")

</div>

You saved my day bro god bless you

---

<div class="post-metadata">

**Author:** ![mohammed991](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mohammed991](https://forum.ionicframework.com/u/mohammed991)\
**Post date:** [November 7, 2020, 5:27pm UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975/27 "2020-11-07T17:27:16Z")

</div>

It works for me thanks 🥰

---

<div class="post-metadata">

**Author:** ![msamyashash](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@msamyashash](https://forum.ionicframework.com/u/msamyashash)\
**Post date:** [June 5, 2022, 9:39am UTC](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975/28 "2022-06-05T09:39:36Z")

</div>

> [@universaljegan](#):
>
> android:usesCleartextTraffic=“true”

FINALLY IT WORKED.  
many thanks … I was going crazy over this problem

[Previous page](https://forum.ionicframework.com/t/ionic-4-rest-api-calls-not-working-on-the-device/152975.md?page=1)
