ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.02k stars 13.51k forks source link

bug: CapacitorHttp does not work with Angular withFetch() interceptor #28684

Closed muuvmuuv closed 10 months ago

muuvmuuv commented 10 months ago

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

When using withFetch from Angular 17, we can no longer use CapacitorHttp POST requests on Android, it does not proceed the request on native side but passes it without any more headers to native window.fetch.

Expected Behavior

Don't break when using withFetch.

Steps to Reproduce

  1. Create ionic angular starter
  2. Use CapacitorHttp
  3. Make a POST request on Android

Code Reproduction URL

No response

Ionic Info

This command does not work in NX environments. But we have all Ionic and Capacitor dependencies on the latest release.

Additional Information

No response

liamdebeasi commented 10 months ago

Hey there! This is the repo for Ionic Framework, the UI component library. CapacitorHTTP issues should be reported on https://github.com/ionic-team/capacitor. I'd also recommend creating a minimal reproduction app that the team can use to reproduce the issue.

ionitron-bot[bot] commented 9 months ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.