Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Geolocation plugin, getCurrentPosition never times out (Android)

$
0
0

@zarko wrote:

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.

System information:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>