Key Takeaways
- Android Doze batches background work when the device is stationary, unplugged, and unused. A desk gateway that is plugged in still needs OEM battery exemptions.
- App Standby can freeze an app you have not opened. Auto-start and a visible persistent notification are part of the design, not decoration.
- Symptoms look like “API is slow”: accept 200, DLR late, inbound STOP delayed.
- Re-check exemptions after every major OS or OEM update.
- You bring the phone and airtime. Gateway pricing is devices plus send volume.
People search android sms gateway doze mode after login codes start landing four minutes late at 02:00 and on time at noon. The API did not change. Android decided the desk phone was idle. On a SIM gateway that delay is the product.
Hub A ops. Pair with OEM background restrictions. You bring the Android and operator credit. We meter devices and volume.
Unplugged · still
Maintenance window only
Charging + exempt
Radio can take jobs as they arrive
What Doze actually delays
Doze (and later Light Doze) defers network access, jobs, and sync for apps when the device is unused. High priority FCM has exceptions; your SMS app talking to a modem still needs to be alive as a foreground-ish worker. Google’s model is documented in the Doze and App Standby guide. OEMs add their own killers on top.
If the gateway app is allowed to sleep like a weather widget, OTP will sleep too. The queue is honest; your SLA copy might not be.
Doze vs App Standby vs OEM
| Mechanism | Trigger | What you do |
|---|---|---|
| Doze | Still, unused; worse on battery | Keep plugged in; ignore-optimizations for the app |
| App Standby | User has not opened the app | Autostart; persistent notification; don’t swipe it away |
| OEM battery saver | Xiaomi/Oppo/Samsung “optimize” | Vendor-specific allowlists after every update |
| Work profile | MDM freeze | Dedicated personal user / spare phone |
Exemptions that stick
Request ignore battery optimizations for the gateway package. Lock autostart. Disable adaptive battery for that app. Confirm SMS permission still belongs to the same user you paired. Install and first launch.
After Android major versions, exemptions reset more often than vendors admit. Put “re-validate Doze settings” on the same calendar as OS updates.
Charger, screen, and unattended
Desk modem: powered USB, screen off is fine, PIN set, not a fully encrypted mystery that never unlocks after reboot. Auto-start after boot is mandatory. A phone that sits at 4% in a drawer is not in Doze; it is off.
Heat throttling looks similar (late DLR). Leave ventilation. Two phones beat one toasty flagship.
How it looks in the queue
- Send accepted; status Pending far longer than daytime.
- Last-seen gaps aligned with nights.
- Inbound STOP arrives in the morning when someone unlocks the phone.
- Canary at noon works; canary at 03:00 does not.
Fail over to a second device rather than retrying the same sleeping radio. Failover guide.
OEM layers on top
Stock AOSP Doze is the polite version. ColorOS, MIUI, One UI, and Harmony-ish forks need extra taps. Follow the OEM article rather than repeating every vendor menu here.
Why this is not a plan outage
Doze does not pause your subscription; it pauses the radio. Platform meter still counts when the SMS finally leaves. Free: 300 SMS lifetime. Developer: 25,000/year. Starter / Pro / Business uncap platform volume (device caps 2 / 5 / 15). Do not promise unmetered carrier SMS.
Checklist
- Plugged in; battery exemption; autostart; persistent notification kept.
- Night canary on a staff number.
- Last-seen alert before customers notice.
- Re-check after OEM update; spare phone if this chassis is stubborn.
Next steps
Tonight, send three staff OTPs after the screen has been off for an hour. If they queue, you are not exempt yet. Downloads · setup.
Related product pages
Jump to the live product docs for this topic—not another long-form article.
- device and SMS volume pricingPlans and allowances
- Android SMS gateway product guideDefinition, product, and how to buy
- SMS API documentationLive endpoint reference
- download the Android gateway appGet the APK





