# Android Native HTTP calls are not working

**URL:** <https://forum.ionicframework.com/t/android-native-http-calls-are-not-working/241952>\
**Category:** Capacitor\
**Created:** [May 23, 2024, 10:17am UTC](https://forum.ionicframework.com/t/android-native-http-calls-are-not-working/241952 "2024-05-23T10:17:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amss](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@amss](https://forum.ionicframework.com/u/amss)\
**Post date:** [May 23, 2024, 10:17am UTC](https://forum.ionicframework.com/t/android-native-http-calls-are-not-working/241952/1 "2024-05-23T10:17:24Z")

</div>

Hi,

I’m building a custom plugin on top of our Android native library, but I have a strange issue that I can’t find a solution to.

The native HTTP requests are not invoked when called from Capacitor function, although the same function is working as expected on native Android Apps.

I tried this configuration but still got the same result.

```auto
import type { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  appId: 'com.xxx.yyy',
  appName: 'xxxxx',
  npmClient: 'npm',
  webDir: 'www',
  server: {
    hostname: 'my-host',
    androidScheme: 'http',
    allowNavigation: []
  },
  android: {
    allowMixedContent: true
  },
  plugins: {
    CapacitorHttp: {
      enabled: true,
    },
  },
};

export default config;

```

---

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [May 23, 2024, 11:57am UTC](https://forum.ionicframework.com/t/android-native-http-calls-are-not-working/241952/2 "2024-05-23T11:57:33Z")

</div>

You need to provide some example code of what you are trying to do and how you are making “native HTTP requests”.

---

<div class="post-metadata">

**Author:** ![Hills90210](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@Hills90210](https://forum.ionicframework.com/u/Hills90210)\
**Post date:** [May 23, 2024, 12:47pm UTC](https://forum.ionicframework.com/t/android-native-http-calls-are-not-working/241952/3 "2024-05-23T12:47:19Z")

</div>

> **[How do I ask a good question? - Help Center](https://stackoverflow.com/help/how-to-ask)**
>
> Stack Overflow | The World’s Largest Online Community for Developers

---

<div class="post-metadata">

**Author:** ![amss](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@amss](https://forum.ionicframework.com/u/amss)\
**Post date:** [May 24, 2024, 9:20pm UTC](https://forum.ionicframework.com/t/android-native-http-calls-are-not-working/241952/4 "2024-05-24T21:20:53Z")

</div>

@twestrick thanks, figured it out today, but it took me some time as for some reason, Capacitor swallowed the exception coming from Android.
