I am running
ionic run ios --device -c -l
and somehow it does not even ask for allowing location service for my app.
I am using iPhone6 iOS8.4 and XCode 7.
Here is code that I am using,
var posOptions = {timeout: 10000, enableHighAccuracy: false};
$ionicPlatform.ready(function() {
$cordovaGeolocation
.getCurrentPosition(posOptions)
.then(getCurrLocSuccess)
.catch(getCurrLocError);
$ionicLoading.show({
template: ‘’,
animation: ‘fade-in’,
showBackdrop: false,
});
});
I’ve installed ngCordova correctly and check its instance by console.log as well. Its loaded.
So it says failes out to call rejectResolver.