Cordova-plugin-geolocation is not working properly

i am trying to getting location but some time its give error location is not getting

  1. sometimes errors happen. You should always try to account for it in your code.
  2. No one is going to be able to help you directly if you can’t tell us what the error is? Do you know how to use a debugger? If not start here: Chrome dev Tools
  3. be sure to start with the examples. They work (