flutter_background_geolocation 플러그인용 Firebase 어댑터로 기록된 위치 데이터를 자동으로 Firestore에 동기화합니다. 백그라운드 위치 추적 서비스와 원활하게 작동하도록 설계되어 실시간 추적과 Firebase 데이터베이스에 장치 위치를 지속적으로 저장할 수 있게 해줍니다. 팀 관리, 배송 추적, 활동 로깅과 같이 지속적인 위치 모니터링이 필요한 애플리케이션에 적합합니다. 이 패키지는 데이터 동기화를 효율적으로 처리하여 Android 및 iOS 플랫폼에서 신뢰성을 보장합니다.
사용 사례
실시간 플릿 트래킹
배송 경로 모니터링
활동 및 여정 기록
위치 기반 분석
사용자 활동 추적
주요 기능
자동 Firestore 동기화
크로스 플랫폼 지원 (Android/iOS)
flutter_background_geolocation과의 원활한 통합
신뢰할 수 있는 오프라인에서 온라인으로의 데이터 전송
사용자 지정 가능한 업로드 간격
적합한 대상
플리트 및 물류 앱
피트니스 및 아웃도어 추적 앱
현장 서비스 관리
지속적인 위치 기록이 필요한 응용 프로그램
고려 사항
Firebase Firestore 설정이 필요합니다
클라우드 스토리지 비용이 발생할 수 있습니다
기본 배경 위치 정보 플러그인에 의존합니다
네트워크 연결이 동기화 시간에 영향을 미칩니다
백그라운드 위치 액세스에 필요한 권한
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
background_geolocation_firebase
Firebase Proxy for Flutter Background Geolocation. The plugin will automatically post locations to your own Firestore database, overriding the flutter_background_geolocation plugin's SQLite / HTTP services.
If you prefer, you can instruct the plugin to update a single document in Firebase rather than creating a new document for eachlocation / geofence. In this case, you would presumably implement a Firebase Function to deal with updates upon this single document and store the location in some other collection as desired. If this is your use-case, you'll also need to ensure you configure your locationsCollection / geofencesCollection accordingly with an even number of "parts", taking the form /collection_name/document_id, eg:
BackgroundGeolocationFirebase.configure(BackgroundGeolocationFirebaseConfig(
locationsCollection: '/locations/latest'// <-- 2 "parts": even
));
// orBackgroundGeolocationFirebase.configure(BackgroundGeolocationFirebaseConfig(
locationsCollection: '/users/123/routes/456/the_location'// <-- 4 "parts": even
));
// Don't use an odd number of "parts"BackgroundGeolocationFirebase.configure(BackgroundGeolocationFirebaseConfig(
locationsCollection: '/users/123/latest_location'// <-- 3 "parts": odd!! No!
));
License
The MIT License (MIT)
Copyright (c) 2018 Chris Scott, Transistor Software
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.