Skip to content

This is an Apache Cordova plugin that allows of tracking user location and posts location changes to server.

License

Notifications You must be signed in to change notification settings

CanerPatir/AlgoristCordovaBackgroundGeoLocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlgoristCordovaBackgroundGeoLocation

This is an Apache Cordova plugin that allows of tracking user location and posts location changes to server.

Usage of The Plugin

Starting plugin:

 AlgoristLocationListener.startLocationListener(<your_restful_service_address>
            , <your_headers_if_required>//For Example: { Authorization: 'Bearer asd13821f/Qwer.....'}
            , true //debug mode true false it shows toast if true but on ios do nothing
            , function () {
                console.log('[AlgoristLocationListener] plugin başlatıldı.');
            }, function (err) {
                console.log('[AlgoristLocationListener] plugin başlatılamadı.' + JSON.stringify(err));
            });

Stopping plugin:

  AlgoristLocationListener.stopLocationListener(function () {
            console.log('[AlgoristLocationListener] plugin has stopped.');
        }, function (err) {
            console.log('[AlgoristLocationListener] could not be stopped.' + err);
        });

Server-side JSON data format: The plugin submits 2d coordinate data to specified uri with post method. The data JSON format that is sent to server as below:

  {
    "lat": <latitude_value>//Ex: 40.56897
    "long": <longitude_value>//Ex: 40.56897
  }

About

This is an Apache Cordova plugin that allows of tracking user location and posts location changes to server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published