i am using $cordovaGeolocation.getCurrentPosition to get user’s location. I need to display different error message if location services are turned off for this app or getting location times out.
if I don’t set any options then I can get error if lcoation service is turned off, but if I set options as { enableHighAccuracy: true, timeout: 15*1000, maximumAge: 60000 } Then I always get timeout error regardless of my location permission settings.
I need to get error first if location services are turn off, and if they are ON, then get timeout error if request times out.
I did use this. On Android 6.0 it can only tell if global location settings are turned off. But it doesn’t know if App’s specific location permission is turned off