please check the below code location is working for my mobile but not for this tab even its not coming in catch also
from below only console.log('in')
is printing its not going in locac.canRequest() and directly going to else part printing console.log('res' + res) => res0
public geolocate() {
let options = {
enableHighAccuracy: true
};
console.log('in');
this.locac.canRequest().then((res: boolean) => {
if (res) {
console.log('res'+res);
this.locac.request(this.locac.REQUEST_PRIORITY_HIGH_ACCURACY).then(() => {
this.geolocation.getCurrentPosition(options).then((position: Geoposition) => {
console.log(position);
}).catch((err) => {
console.log('err'+JSON.stringify(err));
})
}, (error) => {
console.log('err'+JSON.stringify(error));
})
}else{
console.log('res' + res);
}
}).catch((err) => {
console.log('err'+JSON.stringify(err));
})
}