I am working on tracking kind of app.
Here i need to update users latitude & longitudes to server for every 'n' minute(s).
If app is in foreground means it's working fine.
But if app is in background means it's working upto 180 seconds only.
How should I achieve this ?
Is there any alternate solution for this other than timer?