搜尋套件、儲存庫與 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:

所屬分類

原始碼儲存庫

使用此套件的專案