All Projects → transistorsoft → Flutter_background_geolocation

transistorsoft / Flutter_background_geolocation

Licence: other
Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Flutter background geolocation

Update Background Locations
A sample iOs example that tracks background locations.
Stars: ✭ 7 (-98.18%)
Mutual labels:  background, location
Vue Lazy Image Loading
Vue lazy image and background loading plugin.
Stars: ✭ 335 (-12.76%)
Mutual labels:  background
UnityRawInput
Windows Raw Input wrapper for Unity game engine
Stars: ✭ 129 (-66.41%)
Mutual labels:  background
Swiftvideobackground
📹 Framework to Play a Video in the Background of any UIView
Stars: ✭ 303 (-21.09%)
Mutual labels:  background
lovelace-animated-background
Animated backgrounds for lovelace
Stars: ✭ 123 (-67.97%)
Mutual labels:  background
Hgrippleradarview
A beautiful radar view to show nearby items (users, restaurants, ...) with ripple animation, fully customizable
Stars: ✭ 309 (-19.53%)
Mutual labels:  location
leaflet-locationpicker
Simple location picker on Leaflet map
Stars: ✭ 31 (-91.93%)
Mutual labels:  location
Fmap
宇行地图:高仿高德地图Android客户端(持续更新中...)
Stars: ✭ 347 (-9.64%)
Mutual labels:  location
Lost
A drop-in replacement for Google Play services location APIs for Android
Stars: ✭ 327 (-14.84%)
Mutual labels:  location
Onedrawable
✏️ Use only one image to set a background with a click effect for the View
Stars: ✭ 298 (-22.4%)
Mutual labels:  background
React Native Amap Geolocation
React Native geolocation module for Android + iOS
Stars: ✭ 289 (-24.74%)
Mutual labels:  location
Fccurrentlocationgeocoder
iOS Geocoder for forward geocode and reverse geocode user's current location using a block-based syntax. 📍🌍
Stars: ✭ 268 (-30.21%)
Mutual labels:  location
React Native Baidumap Sdk
React Native BaiduMap SDK for Android + iOS
Stars: ✭ 309 (-19.53%)
Mutual labels:  location
iOS-MapKit-Tutorial
iOS MapKit Getting Started
Stars: ✭ 24 (-93.75%)
Mutual labels:  location
Android Hidden Camera
This library is to take picture using camera without camera preview.
Stars: ✭ 339 (-11.72%)
Mutual labels:  background
AsyncLocationKit
📍async/await CoreLocation
Stars: ✭ 18 (-95.31%)
Mutual labels:  location
Citypicker
🔥🔥🔥城市选择、定位、搜索及右侧字母导航,类似美团 百度糯米 饿了么等APP选择城市功能
Stars: ✭ 2,973 (+674.22%)
Mutual labels:  location
Rxgps
Finding current location cannot be easier on Android !
Stars: ✭ 307 (-20.05%)
Mutual labels:  location
Locationpicker
A ready for use and fully customizable location picker for your app
Stars: ✭ 384 (+0%)
Mutual labels:  location
Googleapi
C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
Stars: ✭ 346 (-9.9%)
Mutual labels:  location

flutter_background_geolocation


The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.

The plugin's Philosophy of Operation is to use motion-detection APIs (using accelerometer, gyroscope and magnetometer) to detect when the device is moving and stationary.

  • When the device is detected to be moving, the plugin will automatically start recording a location according to the configured distanceFilter (meters).

  • When the device is detected be stationary, the plugin will automatically turn off location-services to conserve energy.

Also available for Cordova, React Native, NativeScript and pure native apps.


The Android module requires purchasing a license. However, it will work for DEBUG builds. It will not work with RELEASE builds without purchasing a license.

(2018) This plugin is supported full-time and field-tested daily since 2013.


Google Play

Home Settings

Contents

🔷 Installing the Plugin

📂 pubspec.yaml:

Note: See Versions for latest available version.

dependencies:
  flutter_background_geolocation: '^1.9.0'

Or latest from Git:

dependencies:
  flutter_background_geolocation:
    git:
      url: https://github.com/transistorsoft/flutter_background_geolocation.git

🔷 Setup Guides

🔷 Using the plugin

import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;

⚠️ Note as bg in the import. This is important to namespace the plugin's classes, which often use common class-names such as Location, Config, State. You will access every flutter_background_geolocation class with the prefix bg (ie: "background geolocation").

🔷 Example

Full Example

There are three main steps to using BackgroundGeolocation:

  1. Wire up event-listeners.
  2. Configure the plugin with #ready.
  3. #start the plugin.
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;

class _MyHomePageState extends State<MyHomePage> {

  @override
  void initState() {
    super.initState();

    ////
    // 1.  Listen to events (See docs for all 12 available events).
    //

    // Fired whenever a location is recorded
    bg.BackgroundGeolocation.onLocation((bg.Location location) {
      print('[location] - $location');
    });

    // Fired whenever the plugin changes motion-state (stationary->moving and vice-versa)
    bg.BackgroundGeolocation.onMotionChange((bg.Location location) {
      print('[motionchange] - $location');
    });

    // Fired whenever the state of location-services changes.  Always fired at boot
    bg.BackgroundGeolocation.onProviderChange((bg.ProviderChangeEvent event) {
      print('[providerchange] - $event');
    });

    ////
    // 2.  Configure the plugin
    //
    bg.BackgroundGeolocation.ready(bg.Config(
        desiredAccuracy: bg.Config.DESIRED_ACCURACY_HIGH,
        distanceFilter: 10.0,
        stopOnTerminate: false,
        startOnBoot: true,
        debug: true,
        logLevel: bg.Config.LOG_LEVEL_VERBOSE
    )).then((bg.State state) {
      if (!state.enabled) {
        ////
        // 3.  Start the plugin.
        //
        bg.BackgroundGeolocation.start();
      }
    });
  }
}

⚠️ Do not execute any API method which will require accessing location-services until the callback to **#ready* executes (eg: #getCurrentPosition, #watchPosition, #start).

🔷 Demo Application

A fully-featured Demo App is available in the repo in the /example folder.

Google Play

Home Settings

🔷 Simple Testing Server

A simple Node-based web-application with SQLite database is available for field-testing and performance analysis. If you're familiar with Node, you can have this server up-and-running in about one minute.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].