Skip to content

Quick fix of the issue (Cannot read property 'locationManager' of undefined) for @ionic-native/ibeacon Ionic 5

Notifications You must be signed in to change notification settings

YouQam/ionic5ibeacon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a quick fix for the issue that arises when trying to integrate iBeacon plugin into Ionic 5 project.

Issue message

TypeError: Cannot read property 'locationManager' of undefined

Solution

  • 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

About

Quick fix of the issue (Cannot read property 'locationManager' of undefined) for @ionic-native/ibeacon Ionic 5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published