Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location Paused Message #56

Closed
fozzarelo opened this issue Mar 30, 2017 · 3 comments
Closed

Location Paused Message #56

fozzarelo opened this issue Mar 30, 2017 · 3 comments

Comments

@fozzarelo
Copy link

The app seems to be tracking fine for a while. After some inactivity I get a "Location Updated Paused" Notification, and then no more updates.
By the looks of it. My CLLocationManager is pausing after 10-20 minutes of inactivity as described in:
http://stackoverflow.com/questions/17484352/iphone-gps-in-background-never-resumes-after-pause.

My questions:

  • Am I on the right track?
  • Is there a way to prevent the pause from ever coming on? I can handle inactivity on my own.

** I know this is an apple core issue more that yours. Just wondering if you guys found a way around it.

  • Plugin version: v0.1.1
  • Platform: iOS
  • OS version: 9
  • Device manufacturer and model: Iphone 5 SE
  • React Native version: 0.42
  • Plugin configuration options:
    BackgroundGeolocation.configure({
    desiredAccuracy: 1,
    stationaryRadius: 1,
    distanceFilter: 1,
    debug: true,
    stopOnTerminate: false,
    interval: 1000,
    httpHeaders: {
    'X-FOO': 'bar'
    }
    }, function () {});
  • Link to your project: I'm not allowed..
@christocracy
Copy link

christocracy commented Mar 30, 2017

In the original react-native-background-geolocation (of which, this project is a fork from over two years ago), you don't have to worry about pausesLocationUpdatesAutomatically. Mine uses its own motion-detection-based system, where you simply provide a stopTimeout.

However, if you really do wish to completely disable the stop-detection system, you're free to set pausesLocationUpdatesAutomatically: false and location-services are going to remain on forever, until you explicitly tell it to #stop or #changePace(false)

@mauron85
Copy link
Owner

@fozzarelo I read the stackoverflow issue you've posted and it might be the same issue.

Currently pausesLocationUpdatesAutomatically is hardcoded to YES in.

https://github.com/mauron85/react-native-background-geolocation/blob/master/ios/RCTBackgroundGeolocation/LocationManager.m#L153

You can try to set NO or even add configure option. Also PR will be welcome.

@fozzarelo
Copy link
Author

Ok sounds good. I'll give it a try.
Thanks guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants