geolocation the last location provider was disabled
phonegap cordova调用getCurrentPosition/watchCurrentPostion时,执行error回调,错误如下
code:2
message:the last location provider was disabled
如果确认你已经配置过AndroidManifest.xml添加了下面的允许访问位置信息
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
那么还出现这个错误那就是android系统没有开启GPS卫星定位或者WLAN/移动网络的数据定位功能,开启这2个中的任何一个定位功后,the last location provider was disabled错误就会消失
加支付宝好友偷能量挖...
原创文章,转载请注明出处:geolocation the last location provider was disabled