HI,
I am working on an app to send the location details periodically to the server when the app is open in the foreground or in the background.
Location sent date and time must be displayed(or updated) on the screen.
I have tried Wakelock, Timer, and Foreground service.
I am able to get the location periodically but Android is not allowing to access the internet when is the phone is locked.
Any help on how to achieve this?