Skip to content

Usage #123

Open
Open
Usage#123
@rajesh99

Description

@rajesh99
  • 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.

Activity

rajesh99

rajesh99 commented on Jan 3, 2020

@rajesh99
Author

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

rajesh99 commented on Jan 4, 2020

@rajesh99
Author

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

christocracy commented on Jan 4, 2020

@christocracy
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @christocracy@rajesh99

      Issue actions

        Usage · Issue #123 · transistorsoft/cordova-background-geolocation-SampleApp