core location - iOS CoreLocation: Turn it off after position was found or let it run -


i build gps tracker takes current position every 20 seconds or if device rotates more xx °.

now i'm not sure what's best solution saving battery energy:

1) stop corelocation service after got position , turn on if timer expires

2) don't turn off corelocation service while tracking

so, turn service on , off consumes more battery power not turn off (during tracking)?

you should turn off when not tracking. should not alternate between on , off while tracking.

if interval 3-4x longer turn off in between.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -