I’m wondering if anyone on the forum has noticed a problem with the geolocation plugin that has to do with timeouts. What I am experiencing is basically that the getCurrentPosition never times out when the call is made while location on the device is totally disabled. Worth noting that it happens despite of the given user permission for location access by the application. I’ve tested with timeout set to 10000 (10 seconds) for example, but the function never resolves / rejects.
Could it be a plugin bug?
iOS does not manifest the problem (though it has some other potentially related issues).
Tested on Nexus 5 with Android 6.0.
Using Android target: android-23, cordova-plugin-geolocation 2.0.0 and ngCordova $cordovaGeolocation.
Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.10
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.3
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v4.2.2
Xcode version: Xcode 7.1.1 Build version 7B1005