This is a quick fix for the issue that arises when trying to integrate iBeacon plugin into Ionic 5 project.
TypeError: Cannot read property 'locationManager' of undefined
- Install the plugins
$ ionic cordova plugin add cordova-plugin-ibeacon
$ npm install @ionic-native/ibeacon
- Modify the folowing three files in path
node_modules/@ionic-native/ibeacon
with the ones in this repo,- index.js
- ngx/index.js
- ivy_ngcc/ngx/index.js
The solution has been tested using both iOS and Android devices. see