react-native-baidu-map icon indicating copy to clipboard operation
react-native-baidu-map copied to clipboard

不能持续定位

Open PL-SQL opened this issue 5 years ago • 4 comments

如果说记录一个运动轨迹的话,每次获取位置信息都要 调用 Geolocation.getCurrentPosition() 。 这会使得通知栏 使用GPS来回闪烁

PL-SQL avatar Apr 23 '19 08:04 PL-SQL

我每次调用 Geolocation.getCurrentPosition() 返回的都是空数据,只有第一次调用时好的

tiyunchen avatar Jun 26 '19 15:06 tiyunchen

好像只是安卓端有这样的问题,ios是正常的.安卓初次定位也是正常的,再次进行定位就返回的null

boonook avatar Oct 28 '19 09:10 boonook

作者修复了这个问题可以更新到最新版

boonook avatar Nov 02 '19 06:11 boonook

GeolocationModule -> initLocationClient() -> 添加option.setScanSpan(1000);

tristanzeng avatar Aug 11 '21 11:08 tristanzeng