搜索插件、代码仓与 APP 分类

插件详情v2.0.6

background_locator_2

一个 Flutter 插件,即使应用被终止也能请求位置。在后台将位置发送到 Dart 函数,还提供米滤波功能。

AndroidiOS
近 30 天下载
947
喜欢数
146
Pub 分数
120

安装插件

flutter pub add background_locator_2

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

background_locator_2 是一个 Flutter 插件,可在应用终止时仍实现持续的位置跟踪。它会将位置更新发送到指定的 Dart 函数中,并包含一个距离过滤器,以根据移动距离控制更新频率。专为 Android 和 iOS 设计,支持在后台运行且对电池影响极小。适用于需要持久位置数据的健身应用、车队管理以及实时跟踪服务。

适合场景

  • 实时GPS跟踪
  • 健身与活动监测
  • 车队和资产追踪
  • 基于位置的提醒
  • 地理围栏应用

主要特点

  • 后台位置更新
  • 基于距离更新的仪表过滤器
  • 对被终止应用情况的支持
  • 跨平台(Android 和 iOS)
  • 可自定义的更新间隔

适合对象

  • 需要持续位置跟踪的应用程序
  • 开发物流或配送系统的开发者
  • 健身和户外活动应用
  • 需要地理围栏的服务
  • 需要高精度定位的应用程序

使用建议

  • 需要适当的权限和用户同意
  • 频繁更新可能导致电池使用量增加
  • iOS 后台模式必须在 Xcode 中配置
  • 某些旧设备上功能受限
  • 后台执行可能受到操作系统策略的限制

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Looking for Maintainers

This project is no longer actively maintained. If you are interested in becoming a maintainer, please open an issue or contact me directly !

background_locator_2 ! pub package

This package is a V2 of the background_locator package, fixing it and making it work for the newest versions of Flutter. Please read the wiki in order to make this plugin work with flutter 3.x.

A Flutter plugin for getting location updates even when the app is killed.

demo

Refer to wiki page for install and setup instruction or jump to specific subject with below links:

License

This project is licensed under the MIT License - see the LICENSE file for details

Contributor

Thanks to all who contributed on this plugin to fix bugs and adding new feature, including:

所属分类

源码仓库

使用此插件的项目