If I am not wrong, I saw that location service freshs datas in every 5 minutes. Is it because there is no location change? If there is a location change, what is the interval for freshing datas? Is it possible to set interval for foreground and background?
The refresh rate is based on the value of MinimumDistance parameter in the Start method. Set it to 0 if you want to make it quicker. It usually fires every few seconds.
It is already 0 at the codes below (to run foreground and background)
B4X:
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
LocManager.Initialize("LocManager")
'disable location pauses
Dim no As NativeObject = LocManager
no = no.GetField("manager")
no.SetField("pausesLocationUpdatesAutomatically", False)
StartBackground(LocManager, 0) 'replaces locManager.Start
But when there is no location change it waits 5 minutes. Is it possible to change this 5 minutes? And do you mean; if there is a location change it will send in few seconds?