Hello,
i am building an App using the IBeacon PlugIn. But when i’m trying to use it in my code I get an error : 'cordova is not defined ’ . I have checked the ‘cordova.js’ file and is not missing.
Here is a sample of code, for example when i type let delegate = IBeacon.Delegate();
i get the error.
import { Component } from '@angular/core';
import { IBeacon } from 'ionic-native';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
items = Beacons;
}
IBeacon.requestAlwaysAuthorization();
let delegate = IBeacon.Delegate();