Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocationManager is undefined #443

Open
caiusCitiriga opened this issue Jul 16, 2020 · 8 comments
Open

LocationManager is undefined #443

caiusCitiriga opened this issue Jul 16, 2020 · 8 comments

Comments

@caiusCitiriga
Copy link

Hello,
I'm trying to use this plugin, but when I install it on an Ionic4 project and run the app on my android device I get this error:

Image 1

  1. Expected behavior and actual behavior.
    I expect to be able to build and test the plugin following the demo code on the Ionic plugins page

  2. Steps to reproduce the problem.
    Create a fresh Ionic4 application, install the plugin, implement the code, build and run. Once ran, the error will appear.

  3. cordova-android version
    6.10.1

  4. cordova-ios version
    6.10.1

  5. cordova-plugin-ibeacon version
    3.7.0

  6. If running on a device, device model and os version.
    OnePlus 5T on android 10

@ABRT29
Copy link

ABRT29 commented Jul 27, 2020

Hello,

Please follow this link.
You will need to replace three files in \node_modules@ionic-native\ibeacon:

index.js
ngx/index.js
ivy_ngcc/ngx/index.js

@caiusCitiriga
Copy link
Author

Hey thank you @ABRT29! Not the best solution, but at least we've got a workaround for now... I cannot test this right now, but I'll surely do in the next few days, I'll keep you updated about this 😊

@ABRT29
Copy link

ABRT29 commented Jul 27, 2020

Exactly, I use it since this morning tell me if it also works for you :)

@Jusdon
Copy link

Jusdon commented Jul 27, 2020

Hey i have the same issue and it works fine except for the rangeBeaconsInRegion Function there i get no response

@caiusCitiriga
Copy link
Author

Hey i have the same issue and it works fine except for the rangeBeaconsInRegion Function there i get no response

So you have been able to make it work with a fresh Ionic project? That's great! Can't wait to try!

@Jusdon
Copy link

Jusdon commented Jul 28, 2020

Hey i have the same issue and it works fine except for the rangeBeaconsInRegion Function there i get no response

So you have been able to make it work with a fresh Ionic project? That's great! Can't wait to try!

Yes same Issue. It works the solution for you or you have the the issue with RangeBeacons in Region

@mwyld
Copy link

mwyld commented Aug 7, 2020

Same issue here, this fixed it for me too. Hopefully it'll be sorted soon! :)

@Stefanic
Copy link

I made a pull request for the Ionic Native wrapper of this library last week and it has already been released with version 5.28.0:
danielsogl/awesome-cordova-plugins#3505

Hope it helps you guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants