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

STOP logging via intent hyperlink #1103

Closed
jkdoshi opened this issue Nov 7, 2023 · 3 comments
Closed

STOP logging via intent hyperlink #1103

jkdoshi opened this issue Nov 7, 2023 · 3 comments
Milestone

Comments

@jkdoshi
Copy link

jkdoshi commented Nov 7, 2023

(Submitting this one separately from the previous one, as they are different)

Thank you for the (nearly) perfect app!

I am launching it from a webapp using the gpslogger://properties/... hyperlink. And my server returns a profile that sends POST to my webapp's custom URL. So now the webapp can track the phone's GPS. Perfect!

One imperfection :-(

Testing the app and looking at all documentation, I couldn't find this --- Upon clicking the intent hyperlink, the web app is able to auto-START logging in my dynamically generated profile. But how can it trigger STOP logging? Basically I want to provide one hyperlink to START logging and another to STOP logging. The first one (START) is working just fine (startonapplaunch in properties file), but the second one (STOP) I don't know how to do.

Is there a way? A hint either in the intent hyperlink or in the dynamically generated properties file (profile) would be very helpful.

@jkdoshi
Copy link
Author

jkdoshi commented Nov 7, 2023

Basically, what I'm asking is how to send immediatestop=true via gpslogger://properties/... hyperlink (or inside the profile properties file).

@mendhak
Copy link
Owner

mendhak commented Feb 29, 2024

@WilliamRelken has done a pull request for this which is great, I've added it to milestone 130.

OK if I understood correctly you're basically using the .properties file to automate 'starting' and 'stopping' the logging? It's not the intention of this .properties file, it's only meant to be a profile loader and the automation is an unintended side effect, but I've accepted the PR which adds the stop on launch bit since it's adding a minimum overhead.

To be clear you're only able to do this via the .properties file is that right, I didn't think that sending actual querystring parameters would work.

@mendhak mendhak added this to the v130 milestone Feb 29, 2024
@mendhak
Copy link
Owner

mendhak commented Apr 1, 2024

v130 is now on FDroid and the releases.

@mendhak mendhak closed this as completed Apr 1, 2024
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