Turn your Android phone into an SMS gateway

Connect a compatible Android phone and an active SMS-capable SIM to dP Relay. Once enrolled, the phone can send messages through its mobile connection to destinations supported by the SIM and carrier.

Your SIM, your number. Messages are sent from a gateway phone bound to your app. Your plan determines how many phone numbers you can run — start with one and add more as you grow.

Getting the app. After your company is created and approved, your personal download link arrives by email — the app is not publicly distributed.

What you need

Set up your phone

  1. Install the gateway app. After your company is created and approved, your personal download link arrives by email — the app is not publicly distributed.
  2. Create or select an app. Open the Apps screen in your dashboard.
  3. Enrol your device. Choose the enrolment action, give the phone a label, and copy the enrolment secret shown by the dashboard.
  4. Pair the phone. Enter the enrolment secret in the gateway app and follow the app's on-screen instructions.
  5. Confirm the SIM. Check the sender number and selected SIM if the phone supports more than one SIM.
  6. Send a test message. Use the Quickstart to send a test to a number you control, then check the result in the dashboard.

The enrolment secret pairs the phone with your account. Keep it private and do not confuse it with your account password or app secret.

Approval states

StateWhat happensWhat you do
RequestedYou submit the company and gateway-phone details in the dashboard.Fill in the company name and phone details, then submit.
ApprovedThe operator approves the request and your app credentials are issued.Watch for the approval email.
Email linkA personal, time-limited download link for the signed gateway app is emailed to you.Open the link on the gateway phone and install the app.
InstallInstall the app, allow SMS and notification permissions, and keep the phone charged and online.Complete the in-app setup with your credentials.

Keep your phone awake 24/7

Android quietly stops background apps to save battery, and a gateway is exactly the kind of app it stops first — the message never goes out and nobody notices for hours. Every setting below exists to switch that off for this one app. The steps are condensed from the complete field manual, which gives the exact tap-by-tap paths for Samsung, Xiaomi, Oppo/Realme, Vivo, Google Pixel and any other Android 13/14 handset: Complete setup guide (PDF).

Do this on every phone

Steps for your phone's brand

Menu names differ between models, regions and software versions. Use the Settings search bar with the bold word from a step; if a screen genuinely is not there, your version does not have that feature — skip it.

Samsung — One UI 5–8 (Galaxy, Android 13–16)

  1. Battery → Unrestricted. Settings → Apps → See all apps → your app → Battery → Unrestricted. Restricted — the first of the three choices — stops background running entirely.
  2. Turn off "Put unused apps to sleep". One UI 7/8: Settings → Battery → Background usage limits. One UI 5/6: Settings → Battery and device care → Battery → Background usage limits. Master switch off, or Samsung puts the app back on the sleeping list about three days later.
  3. Fix the two lists. On the same screen, remove the app from Sleeping apps and Deep sleeping apps, then add it to Never sleeping apps (+ button). If the app is not offered for the list, Unrestricted already took it out of sleep management — that is correct.
  4. Kill the nightly automation. Settings → Battery and device care → ⋮ → Automation → turn off Auto-optimise daily and Adaptive battery; also turn off Power saving mode and set its trigger to never.

Traps on this brand: Samsung has no "autostart" switch — the default messaging app role plus the sleep-list exemption are what bring the app back after a reboot. The two sleeping lists repopulate themselves at night while Auto-optimise runs, a large One UI update restores them to default, and Device care → Memory can clear the app unless it is excluded.

Xiaomi — MIUI 12–14 / HyperOS (Redmi, POCO)

  1. Battery saver → No restrictions. MIUI 12–14: Settings → Apps → Manage apps → your app → Battery saver → No restrictions. HyperOS: Settings → Apps → your app → Battery → No restrictions. The route that works on every Xiaomi: Security app → Battery → App battery saver.
  2. Turn on autostart — the setting that decides everything. HyperOS 2–3: Settings → Apps → Permissions → Background autostart. MIUI 14: Settings → Apps → Manage apps → Background autostart. MIUI 12–13: Security app → Permissions → Autostart. Enable Secondary launch and Start in background too if the app shows them.
  3. Protect it from the cleaners. Lock the app's card in recent apps (swipe down until a padlock appears), then Security app → Boost speed → Settings → Lock apps → tick the app. On HyperOS also add it under Settings → Additional settings → Battery manager → Protected apps when that screen exists.
  4. Grant every permission on Settings → Apps → Manage apps → your app → App permissions: SMS, Phone, Contacts, Notifications.

Traps on this brand: HyperOS is the most aggressive background-killer of them all, and "No restrictions" plus "Autostart" are two separate switches with separate jobs — with only the first, the app keeps working until MIUI frees its memory and then stays dead until someone taps it. Autostart is off by default (the number-one cause of "the gateway stopped after a restart" here), the Security app's Boost speed button kills background apps, and system updates have been known to switch autostart back off — re-check both steps monthly.

Oppo / Realme / OnePlus — ColorOS 11–16

  1. Allow background activity and auto launch. ColorOS 13–16: Settings → Apps → App management → your app → Battery usage. All versions: Settings → Battery → App battery management → your app. Turn on every switch shown — Allow background activity, Allow auto launch and (if present) Allow foreground activity.
  2. Auto launch list. Settings → Apps → Auto launch → your app ON (ColorOS 13–14 may be Settings → Apps → App management → Auto launch). Turn on Associated launch / Secondary launch if offered, then lock the app's card in recent apps.
  3. Don't optimise. Settings → Battery → More settings → Optimise battery use → your app → Don't optimise. This is a different screen from step 1 — both must be set.
  4. Turn off Sleep standby optimization. Settings → Battery → Power saving → Sleep standby optimization → OFF, and turn off phone-wide Power saving mode and Super Power Saving as well.

Traps on this brand: Sleep standby optimization is on by default and drops the whole phone into an overnight deep sleep — the classic "stops every night, works in the daytime" failure. The Auto launch list holds only a handful of apps (about five); if it is full, remove apps you do not need. "Optimise" and "Don't optimise" live on two different screens, and ColorOS kills recent apps aggressively unless the card is locked — never use a one-tap "clear all" here.

Vivo / iQOO — Funtouch OS 9–15

  1. Battery → Unrestricted on the app's own page: Settings → Apps → your app → Battery → Unrestricted (Android 13+ builds).
  2. High background power consumption. Settings → Battery → High background power consumption → your app ON (Android 13+ builds may read Background power consumption management → High background power usage). Then turn OFF Smart Power Saving for the app.
  3. Autostart + whitelist. Settings → More settings → Applications → Autostart → your app ON, then i Manager → Settings icon → Speedup whitelist → your app ON, and lock the card in recent apps.
  4. Permissions and data saving. Grant SMS, Phone, Contacts, Notifications. If the phone uses data saving: Settings → Mobile network → Data-saving mode → whitelist the app.

Traps on this brand: Vivo closes apps it judges to be draining background power whatever you set elsewhere, so the high-background-power list is mandatory. The one-tap Speed up button closes everything not on the Speedup whitelist, autostart can be reset by a system update, Smart Power Saving can override the whitelist on some builds, and data-saving throttling makes a working gateway look like it stopped.

Google Pixel — stock Android 13 / 14

  1. Allow background usage → Unrestricted. Settings → Apps → See all apps → your app → App battery usage → Allow background usage → Unrestricted. On Android 13 the menu is simply called Battery; some builds need the switch turned on first, then tapped again for the choice.
  2. Phone-wide optimisation list too. Settings → Battery → ⋮ (top right) → Battery optimization → Not optimized → All apps → your app → Don't optimize → Done (alternate route: Settings → Apps → ⋮ → Special app access → Battery optimization). This separate screen can override the per-app one.
  3. Turn off Adaptive Battery — it is on by default on every Pixel. Android 14+: Settings → Battery → Adaptive Battery → off. Android 13: Settings → Battery → Battery Saver → Adaptive Battery → Expand more → off. Also switch off Battery Saver and its automatic trigger.
  4. Take it out of the unused-app lists. Settings → Apps → See all apps → your app → Unused app settings → Pause app activity if unused → OFF, and check Settings → Apps → Unused apps does not list it. Then set Settings → Apps → Default apps → SMS app to the gateway — a Pixel has no autostart switch, and the default-app role plus Unrestricted replace it.

Traps on this brand: Adaptive Battery pushes apps you never open into a "Rare" bucket where they get almost no background work — exactly backwards for a gateway you never open. Hibernation arrives months later, force-stopping the app and resetting its permissions. A notification permission declined at install time never re-prompts, the master notification switch can be on while the one category you need is off, and Data Saver (Settings → Network & internet) should be off on a dedicated gateway phone.

Any other Android 13 / 14 phone

Motorola, Nokia, Honor, Asus, Nothing, Sony, OnePlus on OxygenOS and every other handset — the standard Android paths, lightly reworded by most brands. If your phone has a brand section above, use that instead.

  1. Unrestricted on the app page: Settings → Apps → See all apps → your app → App battery usage → Allow background usage → Unrestricted (the menu is called Battery on Android 13).
  2. Phone-wide list: Settings → Battery → ⋮ (three dots) → Battery optimization → All apps → your app → Don't optimize → Done.
  3. Default SMS app + developer options. Settings → Apps → Default apps → SMS app → your app. Then enable developer options (Settings → About phone → Build number, tap seven times) and set Settings → Developer options → Background process limit → No limit, with Don't keep activities OFF. Lock the card in recent apps.
  4. Unused apps and savers: Pause app activity if unused OFF, and turn off Settings → Battery → Battery Saver and Settings → Network & internet → Data Saver — both sit above the per-app settings and override them.

Traps on this brand: some vendors hide their sleep controls under unexpected names — search Settings for sleep, background and autostart and check every result. Honor and Huawei use their own App launch / App power management screens (treat them like the Xiaomi steps); Asus and Nothing ship an aggressive limiter of their own (App battery management); OnePlus on OxygenOS behaves like ColorOS. And every brand's separate Phone Manager / Device Care / Security app has a one-tap "optimise" button — stop using it on this phone, or add the gateway to its protected list.

How to prove it's working — the reboot test

Five minutes, do it today. It catches the two most common failures in one go: the app not starting by itself, and the app starting but not being allowed to work in the background. Settings drift afterwards — brands re-apply their defaults — so re-run it after any large system update.

  1. Send one test message through the gateway and note the exact time it arrived.
  2. Reboot the phone. Do not open the gateway app afterwards.
  3. Wait about ten minutes, then send a second test message from the dashboard.
  4. Arrived within a few seconds? The phone is correctly configured.
  5. Never arrived? The app did not start by itself — go back to the autostart step for your brand.
  6. Arrived late — say twenty minutes? The app started but was throttled — re-check battery optimisation and the sleep-list step for your brand, and confirm the phone is on the charger.

Then keep it working: brands quietly undo these settings more often than anyone admits, so make the monthly five-minute check a habit — open the gateway app once (that alone resets the "unused" clock), confirm the battery setting is still unrestricted and autostart is still on, and after any major system update re-run your brand section and the reboot test.

Whatever the phone: keep it powered and connected to mobile service and the internet so the gateway app can reach dP Relay, check your mobile plan's SMS allowance, fair-use rules, destination restrictions and charges before sending at scale, and remember that if the phone goes offline or cannot send, messages through that device fail until it is available again.

Troubleshooting

My message did not arrive

Check the recipient number format, the phone's signal, the selected SIM and the mobile plan. Then check message history and the status information actually available in your dashboard. A send request does not by itself prove that an SMS reached the recipient.

The phone keeps going offline

Check internet access, background permissions and battery restrictions for the gateway app. Work through the checklist and your brand's steps in Keep your phone awake 24/7 above, then prove it with the reboot test.

I lost the enrolment secret

Use the device recovery or re-enrolment process provided in the dashboard. Do not invent a replacement secret or share one through a public support channel.

I use a dual-SIM phone

Follow the confirmed instructions for choosing the sending SIM.

[state which SIM sends and whether users can choose] — draft, owner to supply final wording.

For developers building a custom client

The standard gateway app should handle enrolment for most users. Developers building their own client should use the official device-enrolment API reference, including the current authentication scheme and all error responses.

The gateway app makes this call for you. You only need it if you are building your own client.

POST /v5/device/enroll
Authorization: Bearer <enrollment secret>
{ "label": "my office phone" }

201 { "ok": true, "deviceId": "...", "apiKey": "..." }

To add or correct the SIM's number afterwards:

POST /v5/device/phone-number
{ "phoneNumber": "+8801XXXXXXXXX" }

A malformed number sent at enrolment is ignored rather than stored, so a carrier-formatted typo can never block pairing.

StatusCodeMeaning
400invalid_phone_numberThe number was not strict E.164
401invalid_enrollment_secretThe bearer secret is wrong
403enrollment_disabledEnrolment is switched off for this deployment
409phone_number_existsThat number is registered to another device