精密且注重电池消耗的、带运动检测功能的后台定位
# 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,或尚未同步最近议题。