Partial wake lock is not working
问题 My application is having activities and background service which has to run 24*7 , My application has to talk to the server via Wi-Fi to send and receive the information. Problem: whenever any alarm send by the server my app should receive and pops up the app whether it is running in foreground or background and intimate to the user about the alarm. So when device is in active state this feature working perfectly but when device goes to sleep mode, after 1 or 2 mins it disconnects from the