I’m getting geolocation error number 3 which is timeout error
anyone having the same problem with geolocation if so is there’s any other to get the location ?
some times it works though but rarely dont know whats causing this…
Your system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.1.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.3
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v7.1.0
Xcode version: Xcode 8.1 Build version 8B62
i'm using {Geolocation} from "ionic-native";
this.platform.ready().then(() => {
let options = {timeout: 10000, enableHighAccuracy: true};
Geolocation.getCurrentPosition(options).then(resp => {
console.log('resp');
}, (err) => {
console.log('Geolocation err: ');
console.log(err);
});
});