【发布时间】:2017-03-05 18:50:35
【问题描述】:
Xcode 显示了两个隐私设置:
隐私 - 位置始终使用说明
和
隐私 - 使用时的位置使用说明
我并不总是需要用户位置。有没有办法用插件禁用第一个使用描述?
我使用这个代码的插件:
$cordovaGeolocation
.getCurrentPosition(posOptions)
.then(function(pos) {
map.setCenter(new google.maps.LatLng(49.890224, 20.475327));
var myLocation = new google.maps.Marker({
position: new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude),
map: map,
icon: "img/pos.png",
title: "My Location"
});
}, function(err) {
// error
});
非常感谢任何帮助。
【问题讨论】:
标签: angularjs cordova ionic-framework geolocation ngcordova