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

if I manually close the app does not work? #235

Closed
Richi2293 opened this issue Jul 14, 2018 · 9 comments
Closed

if I manually close the app does not work? #235

Richi2293 opened this issue Jul 14, 2018 · 9 comments
Labels
stale auto labeled abandoned issues after a period of inactivity

Comments

@Richi2293
Copy link

Hi,

when I have the app in the foreground and in the background it works because it sends me notifications but if I manually close the app then everything stops working.
(it does not send me any more notifications and in the logs it does not add anything anymore)

Your Environment

  • Plugin version: ^0.5.0-alpha.35
  • Platform: iOS
  • OS version: mac 10.13.4, iphone 11.4
  • Device manufacturer and model: iPhone 7 plus
  • React Native version: 0.56.0
  • Plugin configuration options:
    desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
    stationaryRadius: 5,
    distanceFilter: 3,
    notificationTitle: 'Background tracking',
    notificationText: 'enabled',
    debug: true,
    startOnBoot: true,
    stopOnTerminate: false,
    saveBatteryOnBackground: false,
    locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDER,
    interval: 10000,
    fastestInterval: 5000,
    activitiesInterval: 10000,
    stopOnStillActivity: false

Context

So what I want to know is, does it work if the app is manually closed or I have a wrong configuration?
Thanks

@mauron85
Copy link
Owner

'stopOnTerminate: false' is currently Android only feature. If you terminate your app on iOS it will just stop sending locations. I was working on iOS implementation, but due lack of time and resources it's progressing slowly.

@mauron85
Copy link
Owner

I should correct docs though.

@Richi2293
Copy link
Author

Richi2293 commented Jul 14, 2018

Thanks for the quick response.

Ah okok, so theoretically on ios can you implement this thing right?
On ios it's possible (objective c/swift) but in this library it does not work? (at moment)

Because I watched this repo for a feature that I need in an app, I need to detect when a user is near in an area (gps position).
Could this library fit for this task?


Then I wanted to add, sending the location to the server I don't use it.
Is it possible to deactivate it?

Thanks

@StanislavMayorov
Copy link

@mauron85 Hi. We are interested in stopOnTerminate for ios. Is it in progress? I can help with implementation.

@mauron85
Copy link
Owner

mauron85 commented Dec 10, 2018

Help is welcomed. It could be implemented by using geofences. When user closes app, geofence is set to some very small radius. If user crosses this radius, geofence event will be sent to plugin, which auto starts itself and continue to operate normally.

@StanislavMayorov
Copy link

@mauron85 thank you. Will it start tracking after phone reboot?

@StanislavMayorov
Copy link

StanislavMayorov commented Dec 17, 2018

I created pull request in ios implementation. mauron85/background-geolocation-ios#7
It works after phone reboot. RAW_PROVIDER and DISTANCE_FILTER_PROVIDER are supported.

@stale
Copy link

stale bot commented Jun 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale auto labeled abandoned issues after a period of inactivity label Jun 15, 2019
@stale
Copy link

stale bot commented Jun 22, 2019

This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.

@stale stale bot closed this as completed Jun 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale auto labeled abandoned issues after a period of inactivity
Projects
None yet
Development

No branches or pull requests

3 participants