Problems with implementing InAppBrowser with Angular and capacitor

hello everyone.
I hope you are good.
I am new to using capacitor, I find all the functionalities and everything that helps us when migrating our apps to mobile devices very interesting.

For my case, I am trying to open a web page within one of the sections of my application using InAppBrowser. It worked very well in IOS applications but when trying to use it in Android applications it does not open the application correctly and remains on a blank screen. Checking the android studio logcat shows the following:

E File: https://localhost/main.f791612aaf384ead.js - Line 1 - Msg: Error: NG0204

Returning to the steps I did, I removed the provider from app.module.ts and if it lets the application run but does not open the browser and shows an error that it must be imported as a provider, below I show how I import the module:

import { InAppBrowser } from '@awesome-cordova-plugins/in-app-browser/ngx';

  providers: [
    {
      provide: HTTP_INTERCEPTORS,
      useClass: ErrorInterceptorService,
      multi: true
    },
    {
      provide: InAppBrowser,
    }
  ],

The error that appears removing the provider

 E  File: https://localhost/main.200f55ab0bc138c4.js - Line 1 - Msg: ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(t)[[object Object] -> [object Object] -> [object Object]]: 
                                                                                                      NullInjectorError: No provider for [object Object]!
                                                                                                    NullInjectorError: R3InjectorError(t)[[object Object] -> [object Object] -> [object Object]]: 
                                                                                                      NullInjectorError: No provider for [object Object]!
                                                                                                        at W0.get (https://localhost/main.200f55ab0bc138c4.js:1:42012)
                                                                                                        at X0.get (https://localhost/main.200f55ab0bc138c4.js:1:44814)
                                                                                                        at X0.get (https://localhost/main.200f55ab0bc138c4.js:1:44814)
                                                                                                        at X0.get (https://localhost/main.200f55ab0bc138c4.js:1:44814)
                                                                                                        at $N.get (https://localhost/main.200f55ab0bc138c4.js:1:64852)
                                                                                                        at Hw (https://localhost/main.200f55ab0bc138c4.js:1:27764)
                                                                                                        at jw (https://localhost/main.200f55ab0bc138c4.js:1:28241)
                                                                                                        at v (https://localhost/main.200f55ab0bc138c4.js:1:51827)
                                                                                                        at kq.children.children.component.#e.ɵfac [as factory] (https://localhost/main.200f55ab0bc138c4.js:1:623077)
                                                                                                        at Cs (https://localhost/main.200f55ab0bc138c4.js:1:29905)

The use of this module in the component is:

import { InAppBrowser } from '@awesome-cordova-plugins/in-app-browser/ngx';


export class SIRComponent implements OnInit{

  constructor(private inAppBrowser: InAppBrowser,private router:Router) {
    
  }
  
  ngOnInit(): void {
    const brow = this.inAppBrowser.create('https://www.google.com/?hl=es', '_blank',
    'location=yes,presentationstyle=formsheet,toolbarposition=top,fullscreen=yes,hideurlbar=yes,toolbarcolor=#1c662e,closebuttoncolor=#ffffff,navigationbuttoncolor=#ffffff,hidespinner=no,closebuttoncaption=X');
 
  brow.on('exit').subscribe((eve)=>{
    //App.exitApp();
    this.router.navigate(['/Inicio/'])
  });
  }

}

This is the package.json where I show the versions I am using:

{
  "name": "app-capacitor",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^15.2.0",
    "@angular/cdk": "^15.2.9",
    "@angular/common": "^15.2.0",
    "@angular/compiler": "^15.2.0",
    "@angular/core": "^15.2.0",
    "@angular/forms": "^15.2.0",
    "@angular/material": "^15.2.9",
    "@angular/platform-browser": "^15.2.0",
    "@angular/platform-browser-dynamic": "^15.2.0",
    "@angular/router": "^15.2.0",
    "@awesome-cordova-plugins/in-app-browser": "^6.6.0",
    "@capacitor/android": "^5.6.0",
    "@capacitor/core": "^5.4.2",
    "@capacitor/ios": "^5.6.0",
    "@ng-bootstrap/ng-bootstrap": "^14.2.0",
    "@popperjs/core": "^2.11.6",
    "bootstrap": "^5.2.3",
    "bootstrap-icons": "^1.11.1",
    "cordova-plugin-inappbrowser": "^6.0.0",
    "rxjs": "~7.8.0",
    "sweetalert2": "^11.7.31",
    "tslib": "^2.3.0",
    "zone.js": "~0.12.0"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^15.2.1",
    "@angular/cli": "~15.2.1",
    "@angular/compiler-cli": "^15.2.0",
    "@angular/localize": "^15.2.0",
    "@capacitor/cli": "^5.4.2",
    "@types/jasmine": "~4.3.0",
    "jasmine-core": "~4.5.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.0.0",
    "typescript": "~4.9.4"
  }
}

Additionally, my version of Angular is 15.2.1

It is very strange because as I had already mentioned before, on IOS this plugin is working wonderfully.

I would be very grateful if you can help me with this small error.I do not know what else to do :smiling_face_with_tear: