Did you add cordova-plugin-geolocation to your app?
cordova plugin add cordova-plugin-geolocation
Plugin "cordova-plugin-geolocation" already installed on android.
Plugin "cordova-plugin-geolocation" already installed on browser.
ok I've got it working, really have no idea how, but it was something with the config.xml file.
i have done geolocation on a Android app it works fine only when GPS LOCATION enabled on mobile how do i detect GPS LOCATION and prompt user to enable and use the app