Android FusedLocationProvider stops giving location when phone is idle

Viewed 1500

I'm working on location tracking application using FusedLocationProvider. I have a background service which tracks location of phone in every 5 minutes.

All works well with it, but once the phone goes idle then after 3 to 4 hours of time, the background service stops to take location. When user unlocks the phone the tracking start again.

Can someone please guide me what could be causing the issue?

3 Answers
Related