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

Usage #123

Open
rajesh99 opened this issue Jan 3, 2020 · 3 comments
Open

Usage #123

rajesh99 opened this issue Jan 3, 2020 · 3 comments

Comments

@rajesh99
Copy link

rajesh99 commented Jan 3, 2020

  • I installed the app from the playstore.
  • I registered.
  • I clicked on the 'Hello World'. I turned on the toggle on the top right corner. Then background geolocation is started.
  • I go to Home, then
  • I come back to 'Hello World'. The toggle button is in off. Does this mean the Background geoloaction is turned off.
@rajesh99
Copy link
Author

rajesh99 commented Jan 3, 2020

After turning on in the 'hello world' page and navigating away from the 'hello world' page, the location tracking is off. Is that correct?
I want to test the plugin by navigating into other app pages and see how the locations are tracked

@rajesh99
Copy link
Author

rajesh99 commented Jan 4, 2020

Can you make this change. Navigating away 'hello world', and still the background geolocation still should work.
In this way, we have complete app that reflects the real world apps.

I can do it from my side locally, but, I don't have a hosted server to send the locations.

Hence this request.

@christocracy
Copy link
Member

The sample app explicitly call #stop when navigating to “Home” page. It would be trivial for you to clone this repo and modify the code to not call #stop, and install the app locally.

The plugin’s tracking and http service operates completely independently from react native later.

Even if you terminate the app, rather than “navigate away” from it, the plugin would continue recording and uploading locations to the server (because stopOnTerminate: false).

Terminating the app IS, in effect, “navigating away from the current screen”.

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