Trying to detect a movement change (using the LocationSensor)

image



image

trying to detect a movement change and log it, idk y it isnt working

tested it with 5km run, did not detect, the lat and long that i am printing also didnt change

This isn't the solution, but for sure is an error:


and when I initialize the location sensor I do like that:
image
to have the fastest update rate (compatible with the GPS capabilities).

And this:


where AccuMin is = 5

There is also a nice explanation/tutorial on location sensor here:

To get location changed events while your app is in the background you need background location permission

The locationservice extension is able to do it

Taifun

You probably cam use a Foreground service. A background service might not be needed. I suspect the LS changed response will work while an app using a LS is in the Forerground.

You should be able to get location changed events while your app is in the Foreground. :thinking: :slightly_smiling_face:

i will try to integrate this with the itto background tasks extension

thanks, i will check out the tutorial

ya i saw this but i didnt understand the background extension they used, i will use itoo to run this in the foreground