Fully-featured, Ionic-based sample-application for Cordova Background Geolocation
Edit settings and observe the behavour of Background Geolocation changing in real time.
$ git clone https://github.com/transistorsoft/cordova-background-geolocation-SampleApp.git
README
there.
$ git checkout ionic1
$ 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
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.
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.
The app implements a longtap event on the map. Simply tap & hold the map to initiate adding a geofence.
Enter an identifier
, radius
, notifyOnExit
, notifyOnEntry
.