Battery saving: keep Android from putting the app to sleep
Updated:
Android saves battery by putting background apps to sleep. For an SMS gateway that is a problem, because a sleeping app does not receive orders from the dashboard. Messages then wait in a queue, sometimes for minutes, sometimes for hours. The settings below prevent that.
Settings that apply to every Android
- In the app open Settings, then “Device health”.
- At “Battery usage” tap “Open settings” and choose “Unrestricted”.
- At “Notifications” tap “Allow”. Without it the app cannot show that it is running, and Android stops it sooner.
- Keep the “Sticky notification” on. It is what tells Android not to shut the app down.
The “Device health” screen also shows the “Heartbeat”, the phone's last contact with the server. It is expected every 30 minutes. If it comes less often, the phone maker's settings are probably stopping the app. Tap “Send heartbeat” to test the connection right away.
Your phone
The app recognises the phone's brand itself and shows “Tips for … phones” for it on “Device health”. Here are the same steps in full:
- Samsung: battery settings
- Xiaomi, Redmi, POCO: autostart and battery
- Huawei and Honor: app launch settings
For other brands the app suggests this:
- OnePlus: Settings → Battery → Battery optimization → SMS Portal|app: choose “Don't optimize”. Also turn off Advanced optimization and Sleep standby optimization.
- OPPO and realme: Settings → Battery → App battery management → SMS Portal|app: allow background activity. Also enable Auto-launch under App management.
- vivo: Settings → Battery → Background power consumption management: allow SMS Portal|app. Then in iManager → App manager → Autostart, enable the app.
- Tecno and Infinix: Settings → Battery → App power management: allow SMS Portal|app. In Phone Master → Auto-start management, enable the app.
Menu names change between system versions. Look for an item with a similar meaning.
What next
Questions and answers
- Why set the battery if the app works?
- Android can stop the app in the background. Then messages wait for minutes or hours until the phone wakes it up.
- Won't the battery run down faster?
- The app runs in the background, so it is best to keep the phone plugged in to a charger. Then you do not have to watch the battery level.
- How do I know the settings are right?
- Open the “Device health” screen in the app. It shows “All checks pass” or a list of things to fix.
Related guides
Sources
Didn’t find the answer? Contact us