-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
bug: BackgroundGeolocation - Plugin not Installed #258
Comments
Hello! Thanks for using Ionic! Are you using |
From @DaniloCouto on July 1, 2016 13:32 Hello, I'm building a provider to call BackgroundGeolocation. Other plugins like Geolocation works great. Thanks for answering, |
Ahh ok, thanks! Since this is an ionic native issue i am going to move this issue to the Ionic-Native repo. Thanks for using Ionic! |
Same platform, same versions, same problem here! |
Me too!.. Having the same issue using ionic-native. I have switched to using the "window.backgroundGeolocation" method... |
I'm having same problem using ionic-native from ionic 2 beta 10. Someone knows how to fix it or another way to implement background geolocation? |
I'm getting the warning as well, any workaround? on iOS however |
@AVatch I think you'll just have to use it the javascript way for now until resolve.. ` declare var window: any; //put this after imports
|
Mm is possible to use that way on Ionic 2 Beta 10 with only support to TS ? |
TS is a superset of JavaScript, so you can use JavaScript anywhere in your code. |
Should be fixed now. The plugin not installed error happens when ionic-native fails to find the |
Hi, I think that the problem is not solved, maybe my mistake ? On iOs if i follow the documentation : https://ionicframework.com/docs/native/background-geolocation/ i got the same error. Ionic info :
Installed platform :
Installed plugins :
Tested on iOs Emulator 6+ |
why closed above issue still got same error in the ionic3 version i am using : |
Same problem here! |
Also getting this.
|
same for me... |
Same, but only when I use the method watchLocation() |
any updates here? |
The problem seems to pseudo-fix if you call the functions from within
This seems weird to me, it should be able to work from any class or service. |
The problem keeps coming back when pulling the repo. As pointed in mauron85/cordova-plugin-background-geolocation#613, the problem seems to be that the scoped package What's working for me so far is adding the plugin directly in package.json (
Then the "plugin not installed" message keeps showing but it's just a warning and the plugin seems to be working ok. |
I have only @mauron85 plugin in my package.json still i am getting error on this.backgroundGeolocation.finish(); plugin not installed. |
@aliexalter Your root
|
@lrcampos97 By looking at your Try this:
If everything goes right, you should see in your // package.json
{
"cordova": {
"plugins": {
"@mauron85/cordova-plugin-background-geolocation": { // <-- this has '@mauron85/'
// ...
}
},
} And your // plugins/../package.json
{
"_from": "@mauron85/cordova-plugin-background-geolocation@3.1.0",
// ...
} |
@RaschidJFR Thank you for your response, this worked for me with a small change. So, I did all steps that you told. And one thing was different in my packge.json
Then, I just manually change for your example and the problem was resolved This plugin has other strong problems with Ionic, for example, this one #678 , that I need always create the folder mipmap :( |
Glad it helped. Check this other thread mauron85/cordova-plugin-background-geolocation#686, maybe that's the issue you're talking about. |
From @DaniloCouto on June 30, 2016 20:42
Type: bug
Ionic Version: 2.x
Platform: android 5.0 webview
BackgroundGeolocation methods returns 'Plugin not Installed' whenever I use.
Ionic info
Cordova CLI: 6.2.0 Ionic Framework Version: 2.0.0-beta.9 Ionic CLI Version: 2.0.0-beta.32 Ionic App Lib Version: 2.0.0-beta.18 OS: Node Version: v5.6.0
Ionic plugin ls
cordova-plugin-compat 1.0.0 "Compat" cordova-plugin-console 1.0.3 "Console" cordova-plugin-device 1.1.2 "Device" cordova-plugin-geolocation 2.2.0 "Geolocation" cordova-plugin-mauron85-background-geolocation 2.1.2 "CDVBackgroundGeolocation" cordova-plugin-splashscreen 3.2.2 "Splashscreen" cordova-plugin-statusbar 2.1.3 "StatusBar" cordova-plugin-whitelist 1.2.2 "Whitelist" ionic-plugin-keyboard 2.2.1 "Keyboard"
ionic platform ls
Installed platforms: android 5.1.1
Copied from original issue: ionic-team/ionic-framework#7147
The text was updated successfully, but these errors were encountered: