• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Need help with Android / Java development

N1GGA

Lurker
Dec 9, 2020
1
0
Good afternoon, members of the forum. I have an application, with MainActivity, which starts a service when the application starts. The service sends a POST request to the server every 10 seconds. Everything is fine, requests are received, but only before the phone screen is locked. If the screen is locked, the service seems to stop completely, and when the screen is unlocked, the service resumes and requests start being sent. What could be the problem and how to solve it? Thanks in advance
Android Studio, Java.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones