Get working Ionic + ngCordova + background geolocation









up vote
4
down vote

favorite
2












Goal of the app: get geolocation on each move and log location either when app is in foreground and background.



I've tried so many code and combination but I can't manage to have it working (2 days from now...).



The classic geolocation (getCurrentPosition) is working fine but when we close the app the background geolocation is launched but nothing happen... Function "callbackFn" is never fired.



I'm testing on IOS with xcode > Capabilities Audio & location activated for background activity. I also made working the jQuery sample example given in plugin so I saw it working but never with ionic/angularjs.



Here is the current controller handling the background:



.controller('TestCtrl', function($scope, $timeout, $cordovaBackgroundGeolocation, $ionicPlatform, $window)

$scope.lat_geo = "loading lat...";
$scope.long_geo = "loading long...";


//-- Geolocal launch
var options =
enableHighAccuracy : false,
desiredAccuracy: 0,
stationaryRadius: 1,
distanceFilter: 5,
notificationTitle: 'Background tracking', // <-- android only, customize the title of the notification
notificationText: 'ENABLED', // <-- android only, customize the text of the notification
activityType: 'AutomotiveNavigation',
debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
stopOnTerminate: false // <-- enable this to clear background location settings when the app terminates
;

$ionicPlatform.ready(function()

console.log("[IONIC PLATFORM IS NOW READY]");

//-- First launch a basic geolocalisation to get user acceptance of geosharing ;)
navigator.geolocation.getCurrentPosition(function(location)
console.log('[GEOLOCAL JS1] Location from Phonegap');
,
function (error)
console.log('[GEOLOCAL JS1] error with GPS: error.code: ' + error.code + ' Message: ' + error.message);
,options);

//-- test adaptation depuis l'app jquery
var callbackFn = function(location)
console.log('[BackgroundGeoLocation] Update callback: ' + location.latitude + ',' + location.longitude);
;

var failureFn = function(error)
console.log('[BackgroundGeoLocation] Error: '+error);
;

$cordovaBackgroundGeolocation.configure(callbackFn, failureFn, options);

// Turn ON the background-geolocation system. The user will be tracked whenever they suspend the app.
$cordovaBackgroundGeolocation.start();

//-- Just a timeout to retreive long / lat
$timeout(function()

navigator.geolocation.getCurrentPosition(function(location)

console.log('[GEOLOCAL JS3] Location from Phonegap');
startPos = location;
$scope.$apply(function ()
$scope.lat_geo = startPos.coords.latitude;
$scope.long_geo = startPos.coords.longitude;
);
console.log("[GEOLOCAL BASIC] OK this time :)");
,
function (error)
console.log('[GEOLOCAL JS3] error with GPS: error.code: ' + error.code + ' Message: ' + error.message);
,options);
, 3000);

);
//-- End Geolocal
)


I've put all my code (a complete ionic app starter) on github: https://github.com/Jeff86/ionic_ngcordova_backgroundgeo_test/tree/master










share|improve this question

























    up vote
    4
    down vote

    favorite
    2












    Goal of the app: get geolocation on each move and log location either when app is in foreground and background.



    I've tried so many code and combination but I can't manage to have it working (2 days from now...).



    The classic geolocation (getCurrentPosition) is working fine but when we close the app the background geolocation is launched but nothing happen... Function "callbackFn" is never fired.



    I'm testing on IOS with xcode > Capabilities Audio & location activated for background activity. I also made working the jQuery sample example given in plugin so I saw it working but never with ionic/angularjs.



    Here is the current controller handling the background:



    .controller('TestCtrl', function($scope, $timeout, $cordovaBackgroundGeolocation, $ionicPlatform, $window)

    $scope.lat_geo = "loading lat...";
    $scope.long_geo = "loading long...";


    //-- Geolocal launch
    var options =
    enableHighAccuracy : false,
    desiredAccuracy: 0,
    stationaryRadius: 1,
    distanceFilter: 5,
    notificationTitle: 'Background tracking', // <-- android only, customize the title of the notification
    notificationText: 'ENABLED', // <-- android only, customize the text of the notification
    activityType: 'AutomotiveNavigation',
    debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
    stopOnTerminate: false // <-- enable this to clear background location settings when the app terminates
    ;

    $ionicPlatform.ready(function()

    console.log("[IONIC PLATFORM IS NOW READY]");

    //-- First launch a basic geolocalisation to get user acceptance of geosharing ;)
    navigator.geolocation.getCurrentPosition(function(location)
    console.log('[GEOLOCAL JS1] Location from Phonegap');
    ,
    function (error)
    console.log('[GEOLOCAL JS1] error with GPS: error.code: ' + error.code + ' Message: ' + error.message);
    ,options);

    //-- test adaptation depuis l'app jquery
    var callbackFn = function(location)
    console.log('[BackgroundGeoLocation] Update callback: ' + location.latitude + ',' + location.longitude);
    ;

    var failureFn = function(error)
    console.log('[BackgroundGeoLocation] Error: '+error);
    ;

    $cordovaBackgroundGeolocation.configure(callbackFn, failureFn, options);

    // Turn ON the background-geolocation system. The user will be tracked whenever they suspend the app.
    $cordovaBackgroundGeolocation.start();

    //-- Just a timeout to retreive long / lat
    $timeout(function()

    navigator.geolocation.getCurrentPosition(function(location)

    console.log('[GEOLOCAL JS3] Location from Phonegap');
    startPos = location;
    $scope.$apply(function ()
    $scope.lat_geo = startPos.coords.latitude;
    $scope.long_geo = startPos.coords.longitude;
    );
    console.log("[GEOLOCAL BASIC] OK this time :)");
    ,
    function (error)
    console.log('[GEOLOCAL JS3] error with GPS: error.code: ' + error.code + ' Message: ' + error.message);
    ,options);
    , 3000);

    );
    //-- End Geolocal
    )


    I've put all my code (a complete ionic app starter) on github: https://github.com/Jeff86/ionic_ngcordova_backgroundgeo_test/tree/master










    share|improve this question























      up vote
      4
      down vote

      favorite
      2









      up vote
      4
      down vote

      favorite
      2






      2





      Goal of the app: get geolocation on each move and log location either when app is in foreground and background.



      I've tried so many code and combination but I can't manage to have it working (2 days from now...).



      The classic geolocation (getCurrentPosition) is working fine but when we close the app the background geolocation is launched but nothing happen... Function "callbackFn" is never fired.



      I'm testing on IOS with xcode > Capabilities Audio & location activated for background activity. I also made working the jQuery sample example given in plugin so I saw it working but never with ionic/angularjs.



      Here is the current controller handling the background:



      .controller('TestCtrl', function($scope, $timeout, $cordovaBackgroundGeolocation, $ionicPlatform, $window)

      $scope.lat_geo = "loading lat...";
      $scope.long_geo = "loading long...";


      //-- Geolocal launch
      var options =
      enableHighAccuracy : false,
      desiredAccuracy: 0,
      stationaryRadius: 1,
      distanceFilter: 5,
      notificationTitle: 'Background tracking', // <-- android only, customize the title of the notification
      notificationText: 'ENABLED', // <-- android only, customize the text of the notification
      activityType: 'AutomotiveNavigation',
      debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
      stopOnTerminate: false // <-- enable this to clear background location settings when the app terminates
      ;

      $ionicPlatform.ready(function()

      console.log("[IONIC PLATFORM IS NOW READY]");

      //-- First launch a basic geolocalisation to get user acceptance of geosharing ;)
      navigator.geolocation.getCurrentPosition(function(location)
      console.log('[GEOLOCAL JS1] Location from Phonegap');
      ,
      function (error)
      console.log('[GEOLOCAL JS1] error with GPS: error.code: ' + error.code + ' Message: ' + error.message);
      ,options);

      //-- test adaptation depuis l'app jquery
      var callbackFn = function(location)
      console.log('[BackgroundGeoLocation] Update callback: ' + location.latitude + ',' + location.longitude);
      ;

      var failureFn = function(error)
      console.log('[BackgroundGeoLocation] Error: '+error);
      ;

      $cordovaBackgroundGeolocation.configure(callbackFn, failureFn, options);

      // Turn ON the background-geolocation system. The user will be tracked whenever they suspend the app.
      $cordovaBackgroundGeolocation.start();

      //-- Just a timeout to retreive long / lat
      $timeout(function()

      navigator.geolocation.getCurrentPosition(function(location)

      console.log('[GEOLOCAL JS3] Location from Phonegap');
      startPos = location;
      $scope.$apply(function ()
      $scope.lat_geo = startPos.coords.latitude;
      $scope.long_geo = startPos.coords.longitude;
      );
      console.log("[GEOLOCAL BASIC] OK this time :)");
      ,
      function (error)
      console.log('[GEOLOCAL JS3] error with GPS: error.code: ' + error.code + ' Message: ' + error.message);
      ,options);
      , 3000);

      );
      //-- End Geolocal
      )


      I've put all my code (a complete ionic app starter) on github: https://github.com/Jeff86/ionic_ngcordova_backgroundgeo_test/tree/master










      share|improve this question













      Goal of the app: get geolocation on each move and log location either when app is in foreground and background.



      I've tried so many code and combination but I can't manage to have it working (2 days from now...).



      The classic geolocation (getCurrentPosition) is working fine but when we close the app the background geolocation is launched but nothing happen... Function "callbackFn" is never fired.



      I'm testing on IOS with xcode > Capabilities Audio & location activated for background activity. I also made working the jQuery sample example given in plugin so I saw it working but never with ionic/angularjs.



      Here is the current controller handling the background:



      .controller('TestCtrl', function($scope, $timeout, $cordovaBackgroundGeolocation, $ionicPlatform, $window)

      $scope.lat_geo = "loading lat...";
      $scope.long_geo = "loading long...";


      //-- Geolocal launch
      var options =
      enableHighAccuracy : false,
      desiredAccuracy: 0,
      stationaryRadius: 1,
      distanceFilter: 5,
      notificationTitle: 'Background tracking', // <-- android only, customize the title of the notification
      notificationText: 'ENABLED', // <-- android only, customize the text of the notification
      activityType: 'AutomotiveNavigation',
      debug: true, // <-- enable this hear sounds for background-geolocation life-cycle.
      stopOnTerminate: false // <-- enable this to clear background location settings when the app terminates
      ;

      $ionicPlatform.ready(function()

      console.log("[IONIC PLATFORM IS NOW READY]");

      //-- First launch a basic geolocalisation to get user acceptance of geosharing ;)
      navigator.geolocation.getCurrentPosition(function(location)
      console.log('[GEOLOCAL JS1] Location from Phonegap');
      ,
      function (error)
      console.log('[GEOLOCAL JS1] error with GPS: error.code: ' + error.code + ' Message: ' + error.message);
      ,options);

      //-- test adaptation depuis l'app jquery
      var callbackFn = function(location)
      console.log('[BackgroundGeoLocation] Update callback: ' + location.latitude + ',' + location.longitude);
      ;

      var failureFn = function(error)
      console.log('[BackgroundGeoLocation] Error: '+error);
      ;

      $cordovaBackgroundGeolocation.configure(callbackFn, failureFn, options);

      // Turn ON the background-geolocation system. The user will be tracked whenever they suspend the app.
      $cordovaBackgroundGeolocation.start();

      //-- Just a timeout to retreive long / lat
      $timeout(function()

      navigator.geolocation.getCurrentPosition(function(location)

      console.log('[GEOLOCAL JS3] Location from Phonegap');
      startPos = location;
      $scope.$apply(function ()
      $scope.lat_geo = startPos.coords.latitude;
      $scope.long_geo = startPos.coords.longitude;
      );
      console.log("[GEOLOCAL BASIC] OK this time :)");
      ,
      function (error)
      console.log('[GEOLOCAL JS3] error with GPS: error.code: ' + error.code + ' Message: ' + error.message);
      ,options);
      , 3000);

      );
      //-- End Geolocal
      )


      I've put all my code (a complete ionic app starter) on github: https://github.com/Jeff86/ionic_ngcordova_backgroundgeo_test/tree/master







      ios angularjs geolocation ionic-framework ngcordova






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 22 '15 at 17:01









      Jeff86

      85311




      85311






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          I read this article http://ngcordova.com/docs/plugins/backgroundGeolocation/



          I see that you should put your code into



          document.addEventListener("deviceready", function () ... );



          Do you find any solution?






          share|improve this answer




















          • Hi, I did tried to encapsulate with deviceready but didn't made the trick. You can see on controller.js that I put it in comment on line 70. For now I just gave up to use this bglocation as I don't have time to spend on it, maybe in few months.
            – Jeff86
            Apr 8 '15 at 14:18

















          up vote
          0
          down vote













          You definitely don't want to use the std Cordova-geolocation plugin in the bg, it'll kill the battery in no time.



          I'm the author of the underlying background-geolocation plugin for Ionic. I've created a New Ionic-based SampleApp.



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






          share|improve this answer






















          • RTFM, that's clearly documented. That Android version is no longer supported, btw. It eats the battery like ants at a picnic. I don't recommend that for a production app, especially if you want your users to like you.
            – Christocracy
            Sep 10 '15 at 11:54










          • yes, I found it. It would be kinda nice though, if you state the things that do not work at all for a platform, in the code sample. Instead of writing at lengths about it, and mentioning in the last chapter in behavior that something actually does not work at all. Anyway I need to check the location only every, say, 30 minutes.
            – Toskan
            Sep 12 '15 at 22:21











          • The version you're using is no longer supported (and hasn't been for at least 6 months). The new repo is here github.com/transistorsoft/cordova-background-geolocation-lt
            – Christocracy
            Sep 13 '15 at 22:38










          • If you have further issues, you'll be better served raising issues directly at the repo.
            – Christocracy
            Sep 13 '15 at 22:39










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28660582%2fget-working-ionic-ngcordova-background-geolocation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          I read this article http://ngcordova.com/docs/plugins/backgroundGeolocation/



          I see that you should put your code into



          document.addEventListener("deviceready", function () ... );



          Do you find any solution?






          share|improve this answer




















          • Hi, I did tried to encapsulate with deviceready but didn't made the trick. You can see on controller.js that I put it in comment on line 70. For now I just gave up to use this bglocation as I don't have time to spend on it, maybe in few months.
            – Jeff86
            Apr 8 '15 at 14:18














          up vote
          0
          down vote













          I read this article http://ngcordova.com/docs/plugins/backgroundGeolocation/



          I see that you should put your code into



          document.addEventListener("deviceready", function () ... );



          Do you find any solution?






          share|improve this answer




















          • Hi, I did tried to encapsulate with deviceready but didn't made the trick. You can see on controller.js that I put it in comment on line 70. For now I just gave up to use this bglocation as I don't have time to spend on it, maybe in few months.
            – Jeff86
            Apr 8 '15 at 14:18












          up vote
          0
          down vote










          up vote
          0
          down vote









          I read this article http://ngcordova.com/docs/plugins/backgroundGeolocation/



          I see that you should put your code into



          document.addEventListener("deviceready", function () ... );



          Do you find any solution?






          share|improve this answer












          I read this article http://ngcordova.com/docs/plugins/backgroundGeolocation/



          I see that you should put your code into



          document.addEventListener("deviceready", function () ... );



          Do you find any solution?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 3 '15 at 2:15









          phapsu

          213




          213











          • Hi, I did tried to encapsulate with deviceready but didn't made the trick. You can see on controller.js that I put it in comment on line 70. For now I just gave up to use this bglocation as I don't have time to spend on it, maybe in few months.
            – Jeff86
            Apr 8 '15 at 14:18
















          • Hi, I did tried to encapsulate with deviceready but didn't made the trick. You can see on controller.js that I put it in comment on line 70. For now I just gave up to use this bglocation as I don't have time to spend on it, maybe in few months.
            – Jeff86
            Apr 8 '15 at 14:18















          Hi, I did tried to encapsulate with deviceready but didn't made the trick. You can see on controller.js that I put it in comment on line 70. For now I just gave up to use this bglocation as I don't have time to spend on it, maybe in few months.
          – Jeff86
          Apr 8 '15 at 14:18




          Hi, I did tried to encapsulate with deviceready but didn't made the trick. You can see on controller.js that I put it in comment on line 70. For now I just gave up to use this bglocation as I don't have time to spend on it, maybe in few months.
          – Jeff86
          Apr 8 '15 at 14:18












          up vote
          0
          down vote













          You definitely don't want to use the std Cordova-geolocation plugin in the bg, it'll kill the battery in no time.



          I'm the author of the underlying background-geolocation plugin for Ionic. I've created a New Ionic-based SampleApp.



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






          share|improve this answer






















          • RTFM, that's clearly documented. That Android version is no longer supported, btw. It eats the battery like ants at a picnic. I don't recommend that for a production app, especially if you want your users to like you.
            – Christocracy
            Sep 10 '15 at 11:54










          • yes, I found it. It would be kinda nice though, if you state the things that do not work at all for a platform, in the code sample. Instead of writing at lengths about it, and mentioning in the last chapter in behavior that something actually does not work at all. Anyway I need to check the location only every, say, 30 minutes.
            – Toskan
            Sep 12 '15 at 22:21











          • The version you're using is no longer supported (and hasn't been for at least 6 months). The new repo is here github.com/transistorsoft/cordova-background-geolocation-lt
            – Christocracy
            Sep 13 '15 at 22:38










          • If you have further issues, you'll be better served raising issues directly at the repo.
            – Christocracy
            Sep 13 '15 at 22:39














          up vote
          0
          down vote













          You definitely don't want to use the std Cordova-geolocation plugin in the bg, it'll kill the battery in no time.



          I'm the author of the underlying background-geolocation plugin for Ionic. I've created a New Ionic-based SampleApp.



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






          share|improve this answer






















          • RTFM, that's clearly documented. That Android version is no longer supported, btw. It eats the battery like ants at a picnic. I don't recommend that for a production app, especially if you want your users to like you.
            – Christocracy
            Sep 10 '15 at 11:54










          • yes, I found it. It would be kinda nice though, if you state the things that do not work at all for a platform, in the code sample. Instead of writing at lengths about it, and mentioning in the last chapter in behavior that something actually does not work at all. Anyway I need to check the location only every, say, 30 minutes.
            – Toskan
            Sep 12 '15 at 22:21











          • The version you're using is no longer supported (and hasn't been for at least 6 months). The new repo is here github.com/transistorsoft/cordova-background-geolocation-lt
            – Christocracy
            Sep 13 '15 at 22:38










          • If you have further issues, you'll be better served raising issues directly at the repo.
            – Christocracy
            Sep 13 '15 at 22:39












          up vote
          0
          down vote










          up vote
          0
          down vote









          You definitely don't want to use the std Cordova-geolocation plugin in the bg, it'll kill the battery in no time.



          I'm the author of the underlying background-geolocation plugin for Ionic. I've created a New Ionic-based SampleApp.



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






          share|improve this answer














          You definitely don't want to use the std Cordova-geolocation plugin in the bg, it'll kill the battery in no time.



          I'm the author of the underlying background-geolocation plugin for Ionic. I've created a New Ionic-based SampleApp.



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







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 10 '15 at 19:21

























          answered Jun 6 '15 at 0:10









          Christocracy

          6817




          6817











          • RTFM, that's clearly documented. That Android version is no longer supported, btw. It eats the battery like ants at a picnic. I don't recommend that for a production app, especially if you want your users to like you.
            – Christocracy
            Sep 10 '15 at 11:54










          • yes, I found it. It would be kinda nice though, if you state the things that do not work at all for a platform, in the code sample. Instead of writing at lengths about it, and mentioning in the last chapter in behavior that something actually does not work at all. Anyway I need to check the location only every, say, 30 minutes.
            – Toskan
            Sep 12 '15 at 22:21











          • The version you're using is no longer supported (and hasn't been for at least 6 months). The new repo is here github.com/transistorsoft/cordova-background-geolocation-lt
            – Christocracy
            Sep 13 '15 at 22:38










          • If you have further issues, you'll be better served raising issues directly at the repo.
            – Christocracy
            Sep 13 '15 at 22:39
















          • RTFM, that's clearly documented. That Android version is no longer supported, btw. It eats the battery like ants at a picnic. I don't recommend that for a production app, especially if you want your users to like you.
            – Christocracy
            Sep 10 '15 at 11:54










          • yes, I found it. It would be kinda nice though, if you state the things that do not work at all for a platform, in the code sample. Instead of writing at lengths about it, and mentioning in the last chapter in behavior that something actually does not work at all. Anyway I need to check the location only every, say, 30 minutes.
            – Toskan
            Sep 12 '15 at 22:21











          • The version you're using is no longer supported (and hasn't been for at least 6 months). The new repo is here github.com/transistorsoft/cordova-background-geolocation-lt
            – Christocracy
            Sep 13 '15 at 22:38










          • If you have further issues, you'll be better served raising issues directly at the repo.
            – Christocracy
            Sep 13 '15 at 22:39















          RTFM, that's clearly documented. That Android version is no longer supported, btw. It eats the battery like ants at a picnic. I don't recommend that for a production app, especially if you want your users to like you.
          – Christocracy
          Sep 10 '15 at 11:54




          RTFM, that's clearly documented. That Android version is no longer supported, btw. It eats the battery like ants at a picnic. I don't recommend that for a production app, especially if you want your users to like you.
          – Christocracy
          Sep 10 '15 at 11:54












          yes, I found it. It would be kinda nice though, if you state the things that do not work at all for a platform, in the code sample. Instead of writing at lengths about it, and mentioning in the last chapter in behavior that something actually does not work at all. Anyway I need to check the location only every, say, 30 minutes.
          – Toskan
          Sep 12 '15 at 22:21





          yes, I found it. It would be kinda nice though, if you state the things that do not work at all for a platform, in the code sample. Instead of writing at lengths about it, and mentioning in the last chapter in behavior that something actually does not work at all. Anyway I need to check the location only every, say, 30 minutes.
          – Toskan
          Sep 12 '15 at 22:21













          The version you're using is no longer supported (and hasn't been for at least 6 months). The new repo is here github.com/transistorsoft/cordova-background-geolocation-lt
          – Christocracy
          Sep 13 '15 at 22:38




          The version you're using is no longer supported (and hasn't been for at least 6 months). The new repo is here github.com/transistorsoft/cordova-background-geolocation-lt
          – Christocracy
          Sep 13 '15 at 22:38












          If you have further issues, you'll be better served raising issues directly at the repo.
          – Christocracy
          Sep 13 '15 at 22:39




          If you have further issues, you'll be better served raising issues directly at the repo.
          – Christocracy
          Sep 13 '15 at 22:39

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28660582%2fget-working-ionic-ngcordova-background-geolocation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto