用户拒绝定位权限怎么扑捉不到错误消息?
plus.geolocation.getCurrentPosition(function (position) {
var city = "";
if (position && position.address) {
city = (position.address.city || "").replace("市", "");
}
}, function (e) {
console.log("error-code: " + e.code + " error-message: " + e.message);
}, { provider: 'baidu' });
damdmen
请问有没有单独主动请求用户授权的方法?我想在APP启动页时就请求定位授权,有办法么。。
2016-02-01 18:24