# Ionic 4 (Httpclient)

**URL:** <https://forum.ionicframework.com/t/ionic-4-httpclient/162371>\
**Category:** Ionic Framework\
**Created:** [April 24, 2019, 11:33am UTC](https://forum.ionicframework.com/t/ionic-4-httpclient/162371 "2019-04-24T11:33:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh12345](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@vignesh12345](https://forum.ionicframework.com/u/vignesh12345)\
**Post date:** [April 24, 2019, 11:33am UTC](https://forum.ionicframework.com/t/ionic-4-httpclient/162371/1 "2019-04-24T11:33:19Z")

</div>

I was using httpclient module in ionic\_V3 when I try to migrate to ionic\_V4. The Httpclient is working fine in browser (ionic serve). When I build the app the Httpclient is not working in real device. Kindly suggest me what changes I should do" ?

---

<div class="post-metadata">

**Author:** ![vivek-23](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vivek-23/32/125332_2.png) [@vivek-23](https://forum.ionicframework.com/u/vivek-23)\
**Post date:** [April 24, 2019, 2:30pm UTC](https://forum.ionicframework.com/t/ionic-4-httpclient/162371/2 "2019-04-24T14:30:43Z")

</div>

- It isn’t an `Httpclient` issue as far as I feel. It’s mostly the URLs (as in APIs) you hit that are not accessible.

- To get the error logs, you need to connect to an emulator or a device(enabling USB debugging). Once you have any of these in place, **launch the app** and open chrome browser’s console(click 3 dots on top right) **“More tools =\> Remote devices =\> Your device name =\> Inspect”.**

- Now, you should see the messages on Chrome console itself.

---

<div class="post-metadata">

**Author:** ![vignesh12345](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@vignesh12345](https://forum.ionicframework.com/u/vignesh12345)\
**Post date:** [April 25, 2019, 6:41am UTC](https://forum.ionicframework.com/t/ionic-4-httpclient/162371/3 "2019-04-25T06:41:48Z")

</div>

hi vivek,

I just installed the apk in marshmallow its working fine. But not working only on Pie version mobiles.  
Any solution?

---

<div class="post-metadata">

**Author:** ![vignesh12345](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@vignesh12345](https://forum.ionicframework.com/u/vignesh12345)\
**Post date:** [April 25, 2019, 6:55am UTC](https://forum.ionicframework.com/t/ionic-4-httpclient/162371/4 "2019-04-25T06:55:13Z")

</div>

IONIC-4

HI Vivek,

Found the solution.  
I was building app on Pie version (ANDROID - 9).

On the code I changed the **HTTP to HTTPS** (For secured communication)  
Android has introduced App Transfer Security (ATS) like in Apple IOS 9. Android also introduced ATS.

Which means from version - 9 Pie we should use HTTPS (secured connection).

That solved my problem.

Thanks for the reply

---

<div class="post-metadata">

**Author:** ![vivek-23](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vivek-23/32/125332_2.png) [@vivek-23](https://forum.ionicframework.com/u/vivek-23)\
**Post date:** [April 25, 2019, 7:20am UTC](https://forum.ionicframework.com/t/ionic-4-httpclient/162371/5 "2019-04-25T07:20:39Z")

</div>

Glad to hear that. You can accept your answer so that others can get help from your post for a solution.
