百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

react-native-background-geolocation

> 前端框架
开源

精密且注重电池消耗的、带运动检测功能的后台定位

2.9K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

精密且注重电池消耗的、带运动检测功能的后台定位

# React Native 与 Expo 的后台定位 适用于 **iOS** 和 **Android** 的最精密后台**位置追踪与地理围栏** SDK,具备电池友好的运动检测智能。 该 SDK 使用**运动检测** API(加速度计、陀螺仪、磁力计)来检测设备处于*移动*还是*静止*状态: - **移动中** — 按配置的 `distanceFilter`(米)自动开始位置记录 - **静止时** — 自动关闭定位服务以节省电量 > [!IMPORTANT] > 这是 **`v5`** 版本。有关之前的版本,请参阅 [`v4.x`](https://github.com/transistorsoft/react-native-background-geolocation/tree/4.19.4)。**`v4.x`** 的许可证密钥**不**适用于 **`v5`** — 请登录[客户仪表板](https://transistorsoft.com)生成 **`v5`** 密钥。详情请参阅[迁移指南](help/MIGRATION-GUIDE-5.0.0.md)。 --- ## :books: 文档 ### React Native - [设置](https://docs.transistorsoft.com/react-native/setup/) - [API 参考](https://docs.transistorsoft.com/react-native/BackgroundGeolocation/) - [示例](https://docs.transistorsoft.com/react-native/examples/) ### Expo - [设置](https://docs.transistorsoft.com/react-native/setup/) - [API 参考](https://docs.transistorsoft.com/react-native/BackgroundGeolocation/) - [示例](https://docs.transistorsoft.com/react-native/examples/) --- ## :key: 许可 > [!TIP] > 该 SDK 在 **`DEBUG` 构建**中**功能完整** — 无需许可证。先试用再购买。 > > 需要测试 **`RELEASE`** 构建?[生成免费的 30 天试用许可证](https://transistorsoft.com/shop/trials/new)。 **`RELEASE` 构建**在 iOS 和 Android 上都需要许可证。 --- ## :open_file_folder: 示例应用 参见 [`/example`](example/README.md) — 本仓库中包含示例应用。 --- ## SDK 可用性 | 平台 | 包 | |---|---| | React Native | **本仓库** | | Expo | **本仓库** | | [Flutter](https://github.com/transistorsoft/flutter_background_geolocation) | `flutter_background_geolocation` | []() []() [Purchase a license](https://docs.transistorsoft.com/purchase/?platform=react-native)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptbackgroundbackground-geolocationbackground-locationlocation-tracking

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架