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

Terminated app location tracking sometimes turns off #1

Open
remigijusbalc opened this issue Jan 11, 2019 · 3 comments
Open

Terminated app location tracking sometimes turns off #1

remigijusbalc opened this issue Jan 11, 2019 · 3 comments

Comments

@remigijusbalc
Copy link

Your Environment

  • Plugin version: 0.5
  • Platform: iOS
  • OS version: 12.1
  • Device manufacturer and model:
  • Running in Simulator: NO
  • React Native version: 57.7
  • Plugin configuration options: stopOnTerminated is turned off
  • Link to your project:

Context

I thought that when stopOnTerminate is false, app should constantly track location, but service stays for the first time when I shut down my app, but second time it stops. How to fix it? I wan't to post location updates on every location update in terminated app state

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

  1. After fix set stopOnTerminate to false
  2. Release a production build
  3. Test it

Context

Debug logs

@StanislavMayorov
Copy link
Owner

Hi. It's temporary implementation while new version of library isnt published. It works only with DISTANCE provider. Improved version was merged in https://github.com/mauron85/background-geolocation-ios

It starts tracking after termination when phone location is changed significantly. I think system uses mobile network so you should move physically to test it on real device.

I want to post location updates on every location update in terminated app state

We do the same. It should work second time too.

@remigijusbalc
Copy link
Author

remigijusbalc commented Jan 23, 2019

Thanks for reply!
I don't have much experience with obj-c, but we're trying to send remote notification whenever user enters specific location, even if app is terminated. I've tested many times, but on terminated state app doesnt post any locations to server, which should post notifications. Even when trying to debug app while app terminated, it just doesn't enters background state. Maybe you have any suggestions how to get this functionality?

@StanislavMayorov
Copy link
Owner

StanislavMayorov commented Jan 23, 2019

Please add BackgroundGeolocation.configure object in the issue description.
How many meters do you move a device during testing?

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

2 participants