Capacitor 4.3 Http - Unable to load local files

I’ve upgraded to Capacitor 4.3 and am using the new Http plugin. I’m having issues accessing local files after upgrading. The particular example I have is for loading ngx-translate translation files. It appears that it is trying to use the native HTTP rather than loading from the local filesystem. Anyone have any ideas on how to bypass or work around this? Thanks!

import { HttpClient } from '@angular/common/http';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';

export function createTranslateLoader(http: HttpClient) {
  return new TranslateHttpLoader(http, './assets/i18n/', '.json');

Have you explicitly enabled the HttpPlugin, because it’s disabled by default :thinking:

Yes, I’ve explicitly enabled it because I want all calls to my cloud to use Native rather than the browser. We’ve had many issues recently with people recovering from spotty connections and think Native HTTP will help with this.

Understandable. Sounds like this PR would fix this: fix(http): fix local http requests on native platforms by ItsChaceD · Pull Request #5953 · ionic-team/capacitor · GitHub

Thank you! I should have been able to find that myself. :slight_smile: