Skip to content

Battery and background

Battery optimization is the most common reason a gateway goes quiet. This page explains why, and how to stop it.

Android saves battery by stopping apps it thinks you aren’t using. A gateway looks idle most of the time: it waits, with the screen off, for the next message. A few minutes after the screen turns off, Android may cut its connection or close it.

When that happens, the phone shows as offline in the dashboard and its messages wait in the queue, or move to another phone in the same pool. Nothing is lost, but nothing goes out from that phone until it’s running again.

The app keeps a notification on screen (“SMSFabric gateway is running”) so Android treats it as active. That covers most phones. You also need to turn battery optimization off for SMSFabric, and on some brands take one more step.

The app asks for this during setup. To check it later, open Settings in the app and tap Battery and background, or tap Fix next to Battery optimization on the Gateway tab.

  1. Read the status at the top. On means Android may stop the gateway when the screen is off.

    Battery optimization is on.
  2. Tap Allow background activity, then allow it in Android’s prompt. If the prompt doesn’t appear, Android opens its battery settings list instead: find SMSFabric there and choose the option without restrictions.

  3. Go back to the app. It checks again and shows Off for SMSFabric. The gateway can run in the background.

    Battery optimization is off.

Some manufacturers stop background apps even with battery optimization off. Under Phone-specific steps, the app lists a guide for each brand, with your phone’s brand first and marked This phone. Each guide opens on dontkillmyapp.com, which tracks the current steps for every Android version.

On a Xiaomi phone, its guide comes first.

The usual steps, by brand:

Brand What to change
Xiaomi, Redmi, POCO (MIUI, HyperOS) Turn on Autostart. Set Battery saver to No restrictions. Lock the app in the recent apps screen.
Samsung (One UI) In Battery, open Background usage limits and add SMSFabric to Never sleeping apps. Turn off Put unused apps to sleep.
Huawei, Honor In App launch, set SMSFabric to manage manually, with Auto-launch, Secondary launch and Run in background all on.
OnePlus, OPPO, realme In Battery, allow background activity. Turn off Deep optimization or Sleep standby optimization.
vivo In Background power consumption, allow high usage. Turn on Autostart.
Google Pixel, Motorola and others Turning off battery optimization is usually enough.

Menu names change between Android versions and skins, so follow the guide in the app when they don’t match.

  • Keep it on the charger. A gateway with the screen off uses little power, but it runs all day.
  • Use Wi-Fi and mobile data together, so it stays reachable if one drops.
  • Turn off Adaptive battery in Android’s battery settings.
  • Don’t swipe away the SMSFabric notification and don’t force-stop the app.