The reason it doesnt work is because in the browser the Geolocation API is presented with a prompt any time a particular website attempts to access their location information. In mobile apps, the ability to use Geolocation is handled in the permissions settings for that app. This varies a bit depending upon the specific platform, but in general the permission set for the app must contain the references to geolocation in order to have access to these features within the app. (The GPS has to be turned on). Try with these native plugins: https://github.com/apache/cordova-plugin-geolocation https://github.com/christocracy/cordova-plugin-background-geolocation
thanks.., was able to get this sorted. grateful for your time.
how didi you get this sorted?
*did, encountered same issue
I had to give permission for d plugin I used.. I did that in d configure file I guess.
If u could let me know where exactly u are n d exact errors I think I could help with that