iOS Question Is it possible to set the interval (Foreground and Background) for location service?

Baris Karadeniz

Active Member
Licensed User
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?
 

Baris Karadeniz

Active Member
Licensed User
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?
 
Upvote 0
Top