WebIntent registerBroadcastReceiver fails with no error

Hello,
I’m trying to interface my app with the integrated barcode scanner of this Honeywell device using WebIntent.

The issue that i’m facing is that i cant register my broadcast receiver no matter what i try, it always returns an empty object as the exception.

I also tried using the window.plugins.intentShim method, but no luck.

This is my code:

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { WebIntent } from '@ionic-native/web-intent/ngx';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html',
  providers: [WebIntent]
})
export class HomePage {

  constructor(public navCtrl: NavController,
              public webIntent: WebIntent) {
  }

  ngOnInit() {
    alert('registering intent...')
    
    try {
    //Trying to register it using the Ionic Native wrapper...
    this.webIntent.registerBroadcastReceiver({
      filterActions: ['com.honeywell.ds.action.BARCODE_READ'],
      filterCategories: ['ds.testapp']
    })
    .subscribe(result => {
      alert("OK!"+JSON.stringify(result));
    }, error => {
      alert("Error!\n"+JSON.stringify(error))
    })
    } catch(error) {
      alert(JSON.stringify(error)); //This will print '{}'
      try {
        //Trying to register it using the underlying intentShim....
        (<any>window).plugins.intentShim.registerBroadcastReceiver({
          filterActions: ['com.honeywell.ds.action.BARCODE_READ'],
          filterCategories: ['ds.testapp']
        },
        (reading) => {
          alert("READ: "+JSON.stringify(reading));
        })
      } catch(error) {
        alert(JSON.stringify(error)); //This will print '{}' again
      }
    }
  }

}

this is my packages.json file:

{
  "name": "TestApp",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "start": "ionic-app-scripts serve",
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint"
  },
  "dependencies": {
    "@angular/animations": "5.2.11",
    "@angular/common": "5.2.11",
    "@angular/compiler": "5.2.11",
    "@angular/compiler-cli": "5.2.11",
    "@angular/core": "5.2.11",
    "@angular/forms": "5.2.11",
    "@angular/platform-browser": "5.2.11",
    "@angular/platform-browser-dynamic": "5.2.11",
    "@ionic-native/core": "4.20.0",
    "@ionic-native/splash-screen": "4.20.0",
    "@ionic-native/status-bar": "4.20.0",
    "@ionic-native/web-intent": "^5.22.0",
    "@ionic/storage": "2.2.0",
    "android": "0.0.8",
    "com-darryncampbell-cordova-plugin-intent": "^2.0.0",
    "cordova-android": "8.1.0",
    "cordova-android-support-gradle-release": "^3.0.1",
    "cordova-plugin-androidx-adapter": "^1.1.0",
    "cordova-plugin-device": "^2.0.3",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "^4.1.3",
    "cordova-plugin-splashscreen": "^5.0.3",
    "cordova-plugin-statusbar": "^2.4.3",
    "ionic-angular": "3.9.9",
    "ionicons": "3.0.0",
    "rxjs": "5.5.11",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.29"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.2.4",
    "typescript": "2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-ionic-keyboard": {},
      "com-darryncampbell-cordova-plugin-intent": {},
      "cordova-android-support-gradle-release": {},
      "cordova-plugin-androidx-adapter": {}
    },
    "platforms": [
      "android"
    ]
  }
}

Let me know if there is some info missing!
And thanks in advance for any help, I’ve been scratching my head for quite a while on this :sweat_smile: