christocracy / cordova-plugin-background-geolocation

Sophisticated, battery-conscious, cross-platform background-geolocation with motion-detection
http://transistorsoft.github.io/cordova-background-geolocation
492 stars 744 forks source link

not working on IOS8 #80

Closed tjanssens closed 9 years ago

tjanssens commented 9 years ago

Hi, Because https://github.com/apache/cordova-plugin-geolocation was not working on IOS8 I have updated this plugin. But after the update I get build errors on the background geolocation plugin. I have removed and added the plugin again without success.

Is this IOS8 related and is there a workaround?

Kind regards, Tom

dbaq commented 9 years ago

Hey Tom, I did the migration last night and it was working fine. What's your issue?

spacedevin commented 9 years ago

@tjanssens i was having similar issues. i rebuilt the project and added all my plugins starting with cordova, then 3rd party. fixed my build errors.

christocracy commented 9 years ago

I’ve got the plugin working with ios8 but I haven’t pushed yet.

You do have to cordova plugin remove the Cordova geolocation plugin and install from their github repo (or wait until cordova 3.6) as Devin Smith says.

On Tue, Sep 23, 2014 at 2:48 PM, Devin Smith notifications@github.com wrote:

@tjanssens https://github.com/tjanssens i was having similar issues. i rebuilt the project and added all my plugins starting with cordova, then 3rd party. fixed my build errors.

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-56569918 .

Chris Scott Transistor Software http://www.transistorsoft.com

christocracy commented 9 years ago

Install latest from master branch.

don't forget to remove and re-install

cordova plugin remove org.transistorsoft.cordova.background-geolocation
cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git
tjanssens commented 9 years ago

I removed all plugins, updateded cordova en added all plugins again. Now it is building again. Thank you all!

christocracy commented 9 years ago

Yup, that's pretty much what I did.

$ rm -rf platforms/ios $ rm plugins.json Re Add plugins

On Thursday, September 25, 2014, tjanssens notifications@github.com wrote:

I removed all plugins, updateded cordova en added all plugins again. Now it is building again. Thank you all!

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-56794899 .

Snet from Gmail Mobile

tjanssens commented 9 years ago

The application is building, but is not calling the callbackfunction on IOS, on Android everything is working fine. Do you having the same problem?

the log looks like: 2014-09-25 12:28:55.214 Pavel.App.Driver[56233:1507859] CDVBackgroundGeoLocation configure 2014-09-25 12:28:55.214 Pavel.App.Driver[56233:1507859] - token: (null) 2014-09-25 12:28:55.214 Pavel.App.Driver[56233:1507859] - url: (null) 2014-09-25 12:28:55.214 Pavel.App.Driver[56233:1507859] - distanceFilter: 500 2014-09-25 12:28:55.215 Pavel.App.Driver[56233:1507859] - stationaryRadius: 50 2014-09-25 12:28:55.215 Pavel.App.Driver[56233:1507859] - locationTimeout: 60 2014-09-25 12:28:55.215 Pavel.App.Driver[56233:1507859] - desiredAccuracy: 100 2014-09-25 12:28:55.215 Pavel.App.Driver[56233:1507859] - activityType: 0 2014-09-25 12:28:55.216 Pavel.App.Driver[56233:1507859] - debug: 0 2014-09-25 12:28:55.216 Pavel.App.Driver[56233:1507859] - CDVBackgroundGeoLocation start (background? 0) 2014-09-25 12:28:55.218 Pavel.App.Driver[56233:1507859] setGeoLoggerBackground() 2014-09-25 12:28:55.237 Pavel.App.Driver[56233:1507859] - CDVBackgroundGeoLocation didChangeAuthorizationStatus 4

We are using ngCordova so my code looks like:

// set options var options = { //// https://github.com/christocracy/cordova-plugin-background-geolocation#config url: config.webApiUrl + '/tenantuser/setgeolocationandroid', // <-- Android ONLY: your server url to send locations to params: { // <-- Android ONLY: HTTP POST params sent to your server when persisting locations. }, headers: { // <-- Android ONLY: Optional HTTP headers sent to your configured #url when persisting locations 'Authorization': authStr }, desiredAccuracy: 10, stationaryRadius: 50, distanceFilter: 30, notificationTitle: 'Pavel background tracking', // <-- android only, customize the title of the notification notificationText: 'ENABLED', // <-- android only, customize the text of the notification activityType: 'AutomotiveNavigation', locationTimeout:30, stopOnTerminate: false, debug: false };

        // 'configure' calls 'start' internally
        $cordovaBackgroundGeolocation.configure(options).then(function (location) {
            console.log('[js] BackgroundGeoLocation callback:  ' + location.latitude + ',' + location.longitude);
            tenantUserService.setGeoLocation(location);
        }, function (err) {
            console.log('geo error');
            console.error(err);
        });
christocracy commented 9 years ago

Did you get my last commit? https://github.com/christocracy/cordova-plugin-background-geolocation/commit/740c2d96df6aa003eaa47499d0aec8ab80ddb276

On Thu, Sep 25, 2014 at 6:47 AM, tjanssens notifications@github.com wrote:

The application is building, but is not calling the callbackfunction on IOS, on Android everything is working fine. Do you having the same problem?

the log looks like: 2014-09-25 12:28:55.214 Pavel.App.Driver[56233:1507859] CDVBackgroundGeoLocation configure 2014-09-25 12:28:55.214 Pavel.App.Driver[56233:1507859] - token: (null) 2014-09-25 12:28:55.214 Pavel.App.Driver[56233:1507859] - url: (null) 2014-09-25 12:28:55.214 Pavel.App.Driver[56233:1507859] - distanceFilter: 500 2014-09-25 12:28:55.215 Pavel.App.Driver[56233:1507859] - stationaryRadius: 50 2014-09-25 12:28:55.215 Pavel.App.Driver[56233:1507859] - locationTimeout: 60 2014-09-25 12:28:55.215 Pavel.App.Driver[56233:1507859] - desiredAccuracy: 100 2014-09-25 12:28:55.215 Pavel.App.Driver[56233:1507859] - activityType: 0 2014-09-25 12:28:55.216 Pavel.App.Driver[56233:1507859] - debug: 0 2014-09-25 12:28:55.216 Pavel.App.Driver[56233:1507859] - CDVBackgroundGeoLocation start (background? 0) 2014-09-25 12:28:55.218 Pavel.App.Driver[56233:1507859] setGeoLoggerBackground() 2014-09-25 12:28:55.237 Pavel.App.Driver[56233:1507859] - CDVBackgroundGeoLocation didChangeAuthorizationStatus 4

We are using ngCordova so my code looks like: // set options var options = { //// https://github.com/christocracy/cordova-plugin-background-geolocation#config url: config.webApiUrl + '/tenantuser/setgeolocationandroid', // <-- Android ONLY: your server url to send locations to params: { // <-- Android ONLY: HTTP POST params sent to your server when persisting locations.

        },
        headers: { // <-- Android ONLY:  Optional HTTP headers sent to your configured #url when persisting locations
            'Authorization': authStr
        },
        desiredAccuracy: 10,
        stationaryRadius: 50,
        distanceFilter: 30,
        notificationTitle: 'Pavel background tracking', // <-- android only, customize the title of the notification
        notificationText: 'ENABLED', // <-- android only, customize the text of the notification
        activityType: 'AutomotiveNavigation',
        locationTimeout:30,
        stopOnTerminate: false,
        debug: false
    };

    // 'configure' calls 'start' internally
    $cordovaBackgroundGeolocation.configure(options).then(function (location) {
        console.log('[js] BackgroundGeoLocation callback:  ' + location.latitude + ',' + location.longitude);
        tenantUserService.setGeoLocation(location);
    }, function (err) {
        console.log('geo error');
        console.error(err);
    });

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-56802197 .

Chris Scott Transistor Software http://www.transistorsoft.com

tjanssens commented 9 years ago

I updated the whole stack (cordova + all plug-ins) again and on IOS8 I get "locationManager::didFailWithError (null)" in the logs:

2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] CDVBackgroundGeoLocation configure 2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] - token: (null) 2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] - url: (null) 2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] - distanceFilter: 30 2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] - stationaryRadius: 10 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - locationTimeout: 30 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - desiredAccuracy: 100 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - activityType: 0 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - debug: 0 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - stopOnTerminate: 0 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - CDVBackgroundGeoLocation start (background? 0) 2014-10-01 13:27:06.092 Pavel.App.Driver[987:19900] setGeoLoggerBackground() 2014-10-01 13:27:06.134 Pavel.App.Driver[987:19900] locationManager::didFailWithError (null) 2014-10-01 13:27:06.153 Pavel.App.Driver[987:19900] - CDVBackgroundGeoLocation didChangeAuthorizationStatus 4

christocracy commented 9 years ago

rm -rf platforms/ios rm plugins.json

Rebuild

On Wednesday, October 1, 2014, tjanssens notifications@github.com wrote:

I updated the whole stack (cordova + all plug-ins) again and on IOS8 I get "locationManager::didFailWithError (null)" in the logs:

2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] CDVBackgroundGeoLocation configure 2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] - token: (null) 2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] - url: (null) 2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] - distanceFilter: 30 2014-10-01 13:27:06.090 Pavel.App.Driver[987:19900] - stationaryRadius: 10 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - locationTimeout: 30 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - desiredAccuracy: 100 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - activityType: 0 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - debug: 0 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - stopOnTerminate: 0 2014-10-01 13:27:06.091 Pavel.App.Driver[987:19900] - CDVBackgroundGeoLocation start (background? 0) 2014-10-01 13:27:06.092 Pavel.App.Driver[987:19900] setGeoLoggerBackground() 2014-10-01 13:27:06.134 Pavel.App.Driver[987:19900] locationManager::didFailWithError (null) 2014-10-01 13:27:06.153 Pavel.App.Driver[987:19900] - CDVBackgroundGeoLocation didChangeAuthorizationStatus 4

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-57450500 .

Snet from Gmail Mobile

tjanssens commented 9 years ago

The error disappeared but still get "CDVBackgroundGeoLocation didChangeAuthorizationStatus 4"

2014-10-01 14:08:05.222 Pavel.App.Driver[4574:120048] set background geo logger 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] CDVBackgroundGeoLocation configure 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - token: (null) 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - url: (null) 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - distanceFilter: 30 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - stationaryRadius: 10 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - locationTimeout: 30 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - desiredAccuracy: 100 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - activityType: 0 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - debug: 0 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - stopOnTerminate: 0 2014-10-01 14:08:05.233 Pavel.App.Driver[4574:120048] - CDVBackgroundGeoLocation start (background? 0) 2014-10-01 14:08:05.234 Pavel.App.Driver[4574:120048] setGeoLoggerBackground() 2014-10-01 14:08:05.240 Pavel.App.Driver[4574:120048] - CDVBackgroundGeoLocation didChangeAuthorizationStatus 4

christocracy commented 9 years ago

What does status 4 mean?

https://developer.apple.com/library/ios/documentation/corelocation/reference/cllocationmanagerdelegate_protocol/index.html

On Wednesday, October 1, 2014, tjanssens notifications@github.com wrote:

The error disappeared but still get "CDVBackgroundGeoLocation didChangeAuthorizationStatus 4"

2014-10-01 14:08:05.222 Pavel.App.Driver[4574:120048] set background geo logger 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] CDVBackgroundGeoLocation configure 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - token: (null) 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - url: (null) 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - distanceFilter: 30 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - stationaryRadius: 10 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - locationTimeout: 30 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - desiredAccuracy: 100 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - activityType: 0 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - debug: 0 2014-10-01 14:08:05.231 Pavel.App.Driver[4574:120048] - stopOnTerminate: 0 2014-10-01 14:08:05.233 Pavel.App.Driver[4574:120048] - CDVBackgroundGeoLocation start (background? 0) 2014-10-01 14:08:05.234 Pavel.App.Driver[4574:120048] setGeoLoggerBackground() 2014-10-01 14:08:05.240 Pavel.App.Driver[4574:120048] - CDVBackgroundGeoLocation didChangeAuthorizationStatus 4

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-57454092 .

Snet from Gmail Mobile

tjanssens commented 9 years ago

Yes, it should work, but after that its stops... It never calls the callback function. On IOS 7.1 it works.

tjanssens commented 9 years ago

Tried several things but on IOS8 de callback function is never called... is there a solution for this?

christocracy commented 9 years ago

Do you have cordova.geolocation plugin installed?

Do you have some logs to look at?

Other than that, no there's no solution. It works for me and my clients.

On Friday, October 3, 2014, tjanssens notifications@github.com wrote:

Tried several things but on IOS8 de callback function is never called... is there a solution for this?

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-57805767 .

Snet from Gmail Mobile

tjanssens commented 9 years ago

We almost got it to work. When we install the app directly with XCode on the phone, or in the simulator, it works. But when we install it through itunesconnect, then it does not work. If we go to 'Settings > Privacy > Location' on the phone, then the option 'Always' is not selected, and not available (see screenshot). On the simulator or by installing through XCode we see the option 'Always'.

img_0065

christocracy commented 9 years ago

Try deleting app from device before install

On Wednesday, October 8, 2014, tjanssens notifications@github.com wrote:

We almost got it to work. When we install the app directly with XCode on the phone, or in the simulator, it works. But when we install it through itunesconnect, then it does not work. If we go to 'Settings > Privacy > Location' on the phone, then the option 'Always' is not selected, and not available (see screenshot). On the simulator or by installing through XCode we see the option 'Always'.

[image: img_0065] https://cloud.githubusercontent.com/assets/1716717/4558215/2093cbaa-4edd-11e4-9789-fc87b9c85672.PNG

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-58343337 .

Snet from Gmail Mobile

tjanssens commented 9 years ago

Thank you for the suggestion, but this is not working.

gobisankar11 commented 9 years ago

i Have also same problem .please give solution i am spending 3 days.... 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] CDVBackgroundGeoLocation configure 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - token: (null) 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - url: (null)

christocracy commented 9 years ago

Have you tried anything suggested here?

On Saturday, April 25, 2015, gobisankar11 notifications@github.com wrote:

i Have also same problem .please give solution i am spending 3 days.... 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] CDVBackgroundGeoLocation configure 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - token: (null) 2014-10-01 14:08:05.230 Pavel.App.Driver[4574:120048] - url: (null)

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96179208 .

Snet from Gmail Mobile

gobisankar11 commented 9 years ago

I am uninstall plugin and cordova platform and again install plugin same error will get

some times notification bgtask was killed

i am trying sample ww folder and change my javascript

christocracy commented 9 years ago

bgTask was killed is not important.

On Sat, Apr 25, 2015 at 8:57 AM, gobisankar11 notifications@github.com wrote:

I am uninstall plugin and cordova platform and again install plugin same error will get

some times notification bgtask was killed

i am trying sample ww folder and change my javascript

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96196310 .

Chris Scott Transistor Software http://www.transistorsoft.com

gobisankar11 commented 9 years ago

callback fn not called

var callbackFn = function(location) { console.log('[js] BackgroundGeoLocation callback: ' + location.latitude + ',' + location.longitude);

    alert('callbackfunction');

    var phoneNo='8680066703';
    var address='chennai';
    var latlangLoc='lat:'+location.latitude;

    $.ajax("http://182.74.207.232:8080/timetracking/customerInfoStoringAndroid.do?cmd=latlong&mobilNo="+phoneNo+"&callmeAddress="+address+
           "&callmeInfo="+latlangLoc).done(function() {

                                           });

    // Update our current-position marker.
    app.setCurrentLocation(location);

    // After you Ajax callback is complete, you MUST signal to the native code, which is running a background-thread, that you're done and it can gracefully kill that thread.
    yourAjaxCallback.call(this);
};
gobisankar11 commented 9 years ago

i am spending 3 days

christocracy commented 9 years ago

Don't put any of your code into the Sample App.

gobisankar11 commented 9 years ago

no just i am copy sample app www folder and replace my project www folder

gobisankar11 commented 9 years ago

i am create cordova ios project then your plugin add and replace project www folder into your sample app folder....after above mentioned changes ..not working

christocracy commented 9 years ago

Do you want to solve this? Do exactly as I say. I don't want to know anything about your app. I want you to work purely within my SampleApp, isolated from your code.

$ cd tmp/
$ cp -R ../cordova-plugin-background-geolocation/example/SampleApp ./BgGeo
$ cd BgGeo/
$ cordova plugin add ../../cordova-plugin-background-geolocation
$ cordova platform add ios
$ cordova build ios

Now work with that.

christocracy commented 9 years ago

I just performed the above-mentioned instructions on my machine, booted app in simulator.

It works https://www.dropbox.com/s/afiq5yaorbehon1/Screenshot%202015-04-25%2009.24.55.png?dl=0

gobisankar11 commented 9 years ago

thanks for reply ...i am try monday ..

christocracy commented 9 years ago

On your app, ensure the following in iOS settings:

Settings -> Privacy -> Location Services -> {Your App} -> ALLOW LOCATION ACCESS: ALWAYS

christocracy commented 9 years ago

When in doubt, destroy the platform, remove & re-add the plugin

$ cordova platform remove ios
$ cordova plugin remove cordova-plugin-background-geolocation
$ cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git
gobisankar11 commented 9 years ago

hi sir my requirement lattitude and longitude send every minute in background .if app also closed

christocracy commented 9 years ago

That’s nice.

On Mon, Apr 27, 2015 at 12:31 AM, gobisankar11 notifications@github.com wrote:

hi sir my requirement lattitude and longitude send every minute in background .if app also closed

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96497244 .

Chris Scott Transistor Software http://www.transistorsoft.com

gobisankar11 commented 9 years ago

my requirement send lattitude and longitude every minute in background server .if app also closed

your plugin support my requirement?

gobisankar11 commented 9 years ago

Do you want to solve this? Do exactly as I say. I don't want to know anything about your app. I want you to work purely within my SampleApp, isolated from your code.

$ cd tmp/ $ cp -R ../cordova-plugin-background-geolocation/example/SampleApp ./BgGeo $ cd BgGeo/ $ cordova plugin add ../../cordova-plugin-background-geolocation $ cordova platform add ios $ cordova build ios

cd tmp/

no such file or directory

christocracy commented 9 years ago

?? So create your own damn /tmp directory

On Mon, Apr 27, 2015 at 1:52 AM, gobisankar11 notifications@github.com wrote:

Do you want to solve this? Do exactly as I say. I don't want to know anything about your app. I want you to work purely within my SampleApp, isolated from your code.

$ cd tmp/ $ cp -R ../cordova-plugin-background-geolocation/example/SampleApp ./BgGeo $ cd BgGeo/ $ cordova plugin add ../../cordova-plugin-background-geolocation $ cordova platform add ios $ cordova build ios

cd tmp/

no such file or directory

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96514119 .

Chris Scott Transistor Software http://www.transistorsoft.com

gobisankar11 commented 9 years ago

hello sir i am attach my sample project in notifications@github.com

gobisankar11 commented 9 years ago

hello sir did you saw my project?

christocracy commented 9 years ago

Sorry, I’m not interested in your project. I’m very busy. My instructions are very clear and I’ve proven that I can build my SampleApp.

On Mon, Apr 27, 2015 at 2:12 AM, gobisankar11 notifications@github.com wrote:

hello sir did you saw my project?

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96516553 .

Chris Scott Transistor Software http://www.transistorsoft.com

gobisankar11 commented 9 years ago

ok sir

gobisankar11 commented 9 years ago

ios8 not working your plugin..

christocracy commented 9 years ago

yes it does. did you boot my SampleApp?

On Mon, Apr 27, 2015 at 2:51 AM, gobisankar11 notifications@github.com wrote:

ios8 not working your plugin..

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96522883 .

Chris Scott Transistor Software http://www.transistorsoft.com

gobisankar11 commented 9 years ago

i am try your sample app

https://github.com/christocracy/cordova-plugin-background-geolocation

$ cd example/SampleApp $ cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git $ cordova platform add ios $ cordova build ios

gobisankar11 commented 9 years ago

download your zip and extrack ....copy example folder in your zip folder to my desktop. then

$ cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git $ cordova platform add ios $ cordova build ios

christocracy commented 9 years ago

No, don’t do it like that. I have to update the README

Make a copy of the example/SampleApp outside of my plugin

$ cp -R example/SampleApp /anywhere/else/on/your/computer/SampleApp $ cd /anywhere/else/on/your/computer/SampleApp $ cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git $ cordova build ios

On Mon, Apr 27, 2015 at 2:54 AM, gobisankar11 notifications@github.com wrote:

i am try your sample app

https://github.com/christocracy/cordova-plugin-background-geolocation

$ cd example/SampleApp $ cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git $ cordova platform add ios $ cordova build ios

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96523364 .

Chris Scott Transistor Software http://www.transistorsoft.com

gobisankar11 commented 9 years ago

i am trying above instruction callbackfn fired after unlock my phone only...but my requirement callbackfn fired every minutes and app also closed

christocracy commented 9 years ago

What is your expectation? How are you testing this?

On Mon, Apr 27, 2015 at 3:34 AM, gobisankar11 notifications@github.com wrote:

i am trying above instruction callbackfn fired after unlock my phone only...but my requirement callbackfn fired every minutes and app also closed

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96534983 .

Chris Scott Transistor Software http://www.transistorsoft.com

gobisankar11 commented 9 years ago

my expection is send lattitude and longitude in server in every minutes

iam follow your instruction $ cp -R example/SampleApp /anywhere/else/on/your/computer/SampleApp $ cd /anywhere/else/on/your/computer/SampleApp $ cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git $ cordova build ios

after build open xcodein my project then build and run ... my iphone connect usb via in my system so i choose iphone..... directly run my phone

christocracy commented 9 years ago

Now go outside for a good long walk and listen to your phone.

On Mon, Apr 27, 2015 at 3:43 AM, gobisankar11 notifications@github.com wrote:

my expection is send lattitude and longitude in server in every minutes

iam follow your instruction $ cp -R example/SampleApp /anywhere/else/on/your/computer/SampleApp $ cd /anywhere/else/on/your/computer/SampleApp $ cordova plugin add https://github.com/christocracy/cordova-plugin-background-geolocation.git $ cordova build ios

after build open xcodein my project then build and run ... my iphone connect usb via in my system so i choose iphone..... directly run my phone

— Reply to this email directly or view it on GitHub https://github.com/christocracy/cordova-plugin-background-geolocation/issues/80#issuecomment-96541604 .

Chris Scott Transistor Software http://www.transistorsoft.com