Ionic Capacitor Vuejs

Hello,

I’m trying to use @awesome-cordova-plugins/bluetooth-le plugin within my Ionic/Capacitor/VueJs project, and I don’t seem to be getting anywhere.

I’ve installed the plugin like so:

$ npm install cordova-plugin-bluetoothle 
$ npm install @awesome-cordova-plugins/bluetooth-le 
$ ionic cap sync

I’ve then created a button on my application which fires the initialise

Init Bluetooth
<script>
import { BluetoothLE } from '@awesome-cordova-plugins/bluetooth-le';
export default {
  setup() {
    function initBle() {
        BluetoothLE.initialize({ request: true }).then(
	        null,
	        function (obj) {
		        //Handle errors
		        console.log('init error', obj);
	        },
	        function (obj) {
		        //Handle successes
		        console.log('init success', obj);
		        onScan();
	        }
        );
    }
    return {
        initBle
    }
  }
}
</script>

I get the output in my xcode debug on click

[error] - {}

I was expecting to see either

'init error', { status: 'disabled' }
'init success', { status: 'enabled' }

Have you checked Dev Tools through Safari to see if there are any JS/Vue errors?