Tracking the android mobile and animating marker smoothly in Google Maps. Tracking has been done both in foreground and background. Tested in Android Oreo 8.1, Android 6.0 and Android 5.0
The app is marked as using too much battery by the system. I think this is also the reason that the background service stops running on a moment. What is the strategy to stay under the radar for the battery? Do we need an kind of watchdog mechanism?
after 10 minute notification remove by itself some time is restart it self sometime it stopped that's why i am not getting location by service please help me @martinraj