I’m build a plugin for iBeacon scanning, the iOS doesn’t use any library and it work, for Android I need to use a library, I am using AltBeacon (that I already successfully used for another plugin I made, nativescript-virtual-ibeacon) but whenever I try to instantiate the BeaconManager it gives me the error in the Subject.
I’m using this code:
this.beaconManager = org.altbeacon.beacon.BeaconManager().getInstanceForApplication(application.android.foregroundActivity);
Can anybody help?
You can find the plugin source code here: https://github.com/demetrio812/nativescript-ibeacon