I want to take the users location on a time interval of 10 second in all situation (Like 1. when the app is in foreground, 2. when the app is in background, 3. when the mobile is locked but the app is not been killed).
I was able to get the location regularly in foreground with the help of this Plugin but i was unable to get the location when the app is in background or when the mobile is locked but the app is not been killed .
Can Anyone help me with this part.