cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccloquet <...@git.apache.org>
Subject [GitHub] cordova-plugin-geolocation pull request: background location under...
Date Tue, 22 Sep 2015 20:28:00 GMT
GitHub user ccloquet opened a pull request:

    https://github.com/apache/cordova-plugin-geolocation/pull/51

    background location under iOS 9

    Hi, 
    
    Thanks for this upgrade of the plugin !
    
    I just tried to run in under iOS 9, and it seems that the following lines should be added
before [self.locationManager startUpdatingLocation] : 
    
        locationManager.pausesLocationUpdatesAutomatically = NO;
        locationManager.allowsBackgroundLocationUpdates = YES;
    
    However, doing so drains the battery quickly.
    
    Do you have a similar experience ?
    
    These lines can also be useful, even not strictly necessary for the background usage :

    
        locationManager.activityType = CLActivityTypeFitness;
        locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation;
        locationManager.distanceFilter = kCLDistanceFilterNone;

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dingxin/cordova-plugin-geolocation master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-geolocation/pull/51.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #51
    
----
commit bab87020ab1ae1ab421b61ee8138b9215fdeeb4d
Author: dingxin <dingxin.git@gmail.com>
Date:   2015-09-08T03:12:15Z

    add background location update

commit 4a523d4c7e05180f759b1dbbf12ff151b418afd6
Author: dingxin <dingxin.git@gmail.com>
Date:   2015-09-08T03:17:58Z

    .gitignore add .project

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message