Skip to content

erikagrebur/fork_app_transistorsoft_cordova-background-geolocation-SampleApp

 
 

Repository files navigation

🔷 [Ionic 3] Cordova Background Geolocation — Demo

⚠️ For the Ionic 1 version, use the branch ionic1

Google Play

Fully-featured, Ionic-based sample-application for Cordova Background Geolocation

Home Settings

Edit settings and observe the behavour of Background Geolocation changing in real time.

🔷 Installation

Step 1: Start by cloning this repo

$ git clone https://github.com/transistorsoft/cordova-background-geolocation-SampleApp.git

⚠️ For the Ionic 1 version, use the tagged branch ionic1 and follow further setup steps on the README there.

$ git checkout ionic1

Step 2: Building and Running the Ionic 3 App

$ npm install

$ ionic platform add android
$ ionic run android --device

$ ionic platform add ios
$ ionic run ios --emulator

The quickest way to see the plugin in-action is to boot the iOS simulator and simulate location

🔷 Debug Mode

The plugin has a debug mode for field-testing. The plugin will emit sounds during its life-cycle events:

Event iOS Android
Exit stationary-region Calendar event sound n/a
Location recorded SMS-sent sound "blip"
Aggressive geolocation engaged SIRI listening sound "doodly-doo"
Acquiring stationary location "tick, tick, tick" n/a
Stationary state "bloom" long "beeeeeeep"
Geofence crossing trumpets/fanfare boop-boop-boop

NOTE: In order for debug sounds to operate when the app is in background, you must enable the Audio and Airplay Background Mode.

🔷 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.

🔷 Adding Geofences

The app implements a longtap event on the map. Simply tap & hold the map to initiate adding a geofence.

Tap-hold to add geofence

Enter an identifier, radius, notifyOnExit, notifyOnEntry.

About

Cordova Background Geolocation Sample Application (Premium Version)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 75.6%
  • HTML 18.2%
  • CSS 4.5%
  • Other 1.7%