ionic-team / ng-cordova

OBSOLETE: Please move to Ionic Native https://github.com/ionic-team/ionic-native
https://github.com/ionic-team/ionic-native
MIT License
3.48k stars 1.06k forks source link

namespace fix for bg-location #1451

Open jsuiker opened 6 years ago

jsuiker commented 6 years ago

The BackgroundGeolocation plugin from transitorsoft was updated in 2015 such that the namespace of the plugin changed. This PR fixes the undefined error that results when ngCordova tries to implement the plugin. Although I have not tested the backwards compatibility of this change, I am confident that it should still work for anyone using an older version of the plugin.

The following PR is a reference to the upstream change christocracy/cordova-plugin-background-geolocation#208

I recommend not removing the plugin from ngCordova codebase because some people may still want to pay for the software and utilize this functionality. #1114