[HELP] Cannot read property 'backgroundLocationServices' of undefined
Closed this issue · 1 comments
bhagaym commented
Hello,
I have try to add and run this plugin but I have an error that said "Cannot read property 'backgroundLocationServices' of undefined".
My steps is:
- cordova plugin add https://github.com/pmwisdom/cordova-background-geolocation-services.git --save
- Copy all script in 'How to use' in my index.html
- Run it with cordova run browser
Anyone can help?
thanks
pmwisdom commented
You cannot run cordova plugins in the browser, they need access to native libraries. aka you need to run cordova run ios / android.