Cordova-plugin-eddystone


#1

Hello.
I have tested @ionic-native/ble and @ionic-native/ibeacon it work.
Now I want make test cordova-plugin-eddystone. I installed it and doing test but I have not response from method. Maybe I not correct include it. How use cordova plugin not wrapping ionic ?

Ionic:

ionic (Ionic CLI) : 4.3.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

import { Component } from ‘@angular/core’;

import { NavController, Platform, AlertController } from ‘ionic-angular’;

declare var evothings:any;

startScanningForBeacons(){
this.platform.ready().then(() => {

  if (this.platform.is('cordova')) {

    this.isScanning = true;
    evothings.eddystone.startScan((BeaconData) => {
      console.log('Start scan');
      console.log('BeaconData',BeaconData);
      this.isScanning = false;
      let alert = this.alertCtrl.create({
        title: 'Test',
        subTitle: 'Test',
        message: JSON.stringify(BeaconData),
        buttons: ['Dismiss']
      });
      alert.present();
    },
    error =>console.error('error: ', error)
    
    )
    
  }
  else {
    
  }  
})

}