Cordova-plugin-advanced-http not working on ios

Hi, I am using cordova-plugin-advanced-http in my ionic-v6 Cordova app. I have referred this ionic 6 doc for setting it up.

On Android it is working fine. But on iOS it is returning 400 Bad Request in the response. Also I am not able to see the network logs on both the platforms for the request sent from this plugin in the browser’s network tab. To confirm this, I tried using HttpClient of @angular/common/http. For httpClient I was able to see the logs

The code and plugin is same on both the platforms.

Ionic Info


   Ionic CLI                     : 6.19.0 (/Users/CGauns-mac/.nvm/versions/node/v16.15.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.1.12
   @angular-devkit/build-angular : 13.2.6
   @angular-devkit/schematics    : 13.2.6
   @angular/cli                  : 13.2.6
   @ionic/angular-toolkit        : 6.1.0


   Cordova CLI       : 11.0.0
   Cordova Platforms : ios 6.2.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 23 other plugins)


   cordova-res                          : 0.15.4
   native-run (update available: 1.6.0) : 1.5.0


   ios-deploy : 1.9.2
   ios-sim    : 8.0.2
   NodeJS     : v16.15.0 (/Users/CGauns/.nvm/versions/node/v16.15.0/bin/node)
   npm        : 8.5.5
   OS         : macOS Big Sur
   Xcode      : Xcode 13.1 Build version 13A1030d

I wrote this function, so I can use native http exactly like angular http:

  public get(url: string, params?: any, options: any = {}) {
    let responseData = this.http.get(url, params, {})
      .then(resp => options.responseType == 'text' ? : JSON.parse(;

    var observableFromPromise = from(responseData);
    return observableFromPromise;

Use it like this:

this.get('https://...').subscribe(resp => {
  console.log('Response', resp);

hi @mariusbolik

Yes… Using HttpClient from @angular/common/http works fine. But wanted to use the same plugin in order to maintain consistency with other apps we have. :grinning:

Do you have a solution for that plugin?