【发布时间】:2021-01-07 02:18:45
【问题描述】:
我正在使用https://github.com/mauron85/react-native-background-geolocation,但固定不工作。我的提供商是 DISTANCE_FILTER_PROVIDER,我按照代码进行操作
BackgroundGeolocation.on('stationary', (stationaryLocation) => {
// handle stationary locations here
console.log(stationaryLocation, 'STATIONARY')
});
但 console.log 中没有显示任何内容,删除 BackgroundGeolocation.on('location', (location) => {}) 并显示固定。这是怎么回事?有人可以帮助我如何使用文具。我在自动暂停中使用它。感谢您的帮助,谢谢。
【问题讨论】:
标签: android react-native geolocation