i need my service to keep running even when the device sleep (so i can send commands to my device using httputlis), so i searched around and i found that wake lock would not let the device sleep, which worked for me but it made the battery empty very fast.
how could apps like whatsapp not use wake lock and you can still revive whatsapp messages when your device is at sleep mode ?
how could apps like whatsapp not use wake lock and you can still revive whatsapp messages when your device is at sleep mode ?