PCTUTU.comBack to PCTUTU.com
GitHub projects
android-sms-gatewayUtilities
Category
Utilities
Publisher
capcom6
Repository
Open repository
Release
Open release
Current version
v1.79.3
Release date
2026-11-26
Package size
Android 15.9 MB
Utilities Β· capcom6

android-sms-gateway

[![Contributors][contributors shield]][contributors url] [![Forks][forks shield]][forks url] [![Stargazers][stars shield]][stars url] [![Issues][issues shield]][issues url] [![Apache 2.0 License][license shield]][license url]

Version v1.79.3
Available for Android

README

[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![Apache 2.0 License][license-shield]][license-url]


Logo

SMS Gateway for Androidβ„’

Turns your smartphone into an SMS gateway for sending and receiving messages via API.
Explore the docs Β»

Report Bug Β· Request Feature

About The Project

SMS Gateway turns your Android smartphone into an SMS gateway. It's a lightweight application that allows you to send SMS messages programmatically via an API or CLI tool and receive webhooks on incoming SMS. This makes it ideal for integrating SMS functionality into your own applications or services.

Features

πŸ“± Core Functionality:

  • πŸ“ No personal information required: Creating an account needs no email or personal details. In cloud mode the device is registered only after you sign up or sign in; in local mode you don't need an account at all!
  • πŸ“¨ Send and Receive SMS via API: Use our API to send messages directly from your applications or services.
  • πŸ€– Support for Android 5.0 and above: Compatible with Android 5.0 and later versions. See Android 15 Note
  • πŸ‘€ Explicit device registration: The device never registers itself in the background β€” in cloud mode you always sign up or sign in first.
  • πŸ—‘οΈ Unregister device: Remove the cloud registration from the device at any time, and sign up or sign in again whenever you need the cloud server.

πŸ’¬ Message Handling:

  • πŸ“œ Multipart messages: Send long messages with auto-partitioning.
  • πŸ“Š Message status tracking: Monitor the status of sent messages in real-time.
  • πŸ“₯ Incoming messages viewer: View all received SMS, Data SMS, and MMS messages directly in the app with organized tabs and statistics.
  • πŸ”” Real-time incoming message notifications: Receive instant SMS and MMS notifications via webhooks.
  • πŸ“– Read received messages: Access previously received messages via the same webhooks used for real-time notifications.
  • πŸ“Ž MMS download notifications: Receive webhook notifications when MMS messages are fully downloaded, including message body and attachments.
  • πŸ“€ Send MMS messages via API: Send multimedia messages (images, audio, video, files) as Base64-encoded attachments, with an optional subject and text body.
  • πŸ–ΌοΈ Received MMS attachments: Attachments of received MMS messages are stored on the device and can be fetched through the inbox API. Attachments larger than the configurable inline size limit (Settings β†’ Inbox, 1 MiB by default) are kept on the device and omitted from webhook payloads and cloud uploads.
  • πŸ“¦ Batch webhook events: Receive batched webhook deliveries when multiple messages arrive at once, reducing the number of requests.
  • πŸ›‘ Cancel pending messages: Cancel queued messages before they are sent.
  • πŸ” Message filtering: Filter the messages list by state (pending, sent, delivered, failed) and type (SMS, MMS, Data SMS) to find messages quickly.
  • ⏳ Send rate limiting: Restrict the number of messages sent per period (e.g., per 30 minutes) to avoid operator throttling.
  • ⏰ Message scheduling: Schedule messages for future delivery using the optional scheduleAt field (it must be a future timestamp).

πŸ”’ Security and Privacy:

  • πŸ” End-to-end encryption: Encrypts message content and recipients' phone numbers before sending them to the API and decrypts them on the device.
  • 🏒 Private server support: Use a backend server in your own infrastructure for enhanced security.

πŸ”§ Advanced Features:

  • πŸ’³ Multiple SIM card support: Supports devices with multiple SIM cards.
  • πŸ“±πŸ“± Multiple device support: Connect multiple devices to the same account with Cloud or Private server. Messages sent via the server are distributed across all connected devices.
  • πŸ’Ύ Data SMS support: Send and receive binary data payloads via SMS for IoT commands, encrypted messages, and other specialized use cases.
  • πŸ• Working hours scheduling: Restrict message delivery to configurable time windows, automatically pausing the queue outside of them.
  • πŸ”„ Reliable background capture: SMS, data SMS, and MMS receivers are declared in the manifest and enabled while the gateway runs, so incoming messages are still delivered if the system kills the app process.

πŸ”Œ Integration:

  • πŸͺ Webhooks: Set up webhooks to be triggered on specified events.
  • πŸ“Š Webhook queue diagnostics: Inspect the webhook delivery queue in-app to see pending deliveries, retries, and their status.

Ideal For

  • πŸ” Authentication & Verification: Secure user accounts and transactions with SMS-based two-factor authentication, minimizing the risk of unauthorized access.
  • πŸ“© Transactional Messages: Send confirmation messages for user actions, enhancing the reliability and perception of your brand.
  • ⏰ SMS Reminders: Prompt users about upcoming events or appointments to ensure engagement and reduce missed opportunities.
  • πŸ”” SMS Notifications: Deliver immediate notifications to users for important updates, offers, and service enhancements.
  • πŸ“Š User Feedback: Solicit and collect user feedback through SMS, providing valuable insights for improving your services.

Note: It is not recommended to use this for batch sending due to potential mobile operator restrictions.

(back to top)

Built With

  • Kotlin
  • Ktor
  • Room
  • Firebase

(back to top)

Installation

You can install app to your device from prebuilt APK.

Build Variants

The project provides two pre-built variants:

  • Secure (release) build: Production-ready with strict security configurations. This is the recommended build for production deployments.
  • Insecure build: For development and testing with cleartext traffic allowed. This build should never be used in public environments.

Prerequisites

You need an Android device with Android 5.0 (Lollipop) or above for using the application.

Permissions

To use the application, you need to grant the following permissions:

  • SEND_SMS: This permission is required to send SMS messages.
  • READ_PHONE_STATE: This permission is optional. If you want to select the SIM card, you can grant this permission.
  • READ_SMS: This permission is optional. If you want to read previous SMS messages, you need to grant this permission.
  • RECEIVE_SMS: This permission is optional. If you want to receive webhooks on incoming SMS, you need to grant this permission.
  • RECEIVE_MMS, RECEIVE_WAP_PUSH: This permissions are optional. If you want to receive webhooks on incoming MMS messages, you need to grant these permissions.

Installation from APK

  1. Navigate to the Releases page.
  2. Download the latest APK file from the list of available releases.
  3. Transfer the APK file to your Android device.
  4. On your Android device, go to Settings > Security (or Privacy on some devices).
  5. Enable the Unknown sources option to allow installation of apps from sources other than the Play Store.
  6. Use a file manager app to navigate to the location of the downloaded APK file.
  7. Tap on the APK file to start the installation process.
  8. Follow the on-screen prompts to complete the installation.

Build from Source

Prerequisites:

  • JDK 17 (required by Android Gradle Plugin 8.1.2) and the Android SDK β€” the project compiles against SDK 33. The Gradle wrapper (Gradle 8.0) is included in the repository.
  • The SDK location is read from local.properties (created automatically by Android Studio) or the ANDROID_HOME environment variable.
  • app/google-services.json β€” Firebase configuration required by the Google Services plugin. The file is gitignored, so provide your own copy (CI generates it from a repository secret).

The release and insecure variants are signed with your own keystore, which the build expects at app/keystore.jks (also gitignored). Gradle reads the signing variables from the process environment, not from a .env file, and they are listed in .env.example:

Variable Purpose Format Example
SIGNING_STORE_PASSWORD Password for the keystore file used to sign release builds String your-keystore-password
SIGNING_KEY_ALIAS Alias of the key inside the keystore that signs release builds String your-key-alias
SIGNING_KEY_PASSWORD Password for that key alias String your-key-password

The three signing variables are read by signingConfigs.release in app/build.gradle. The debug and debugInsecure variants are signed with the default Android debug keystore and need none of them.

Export the variables and build:

cp .env.example .env
# fill in your values, then:
set -a; source .env; set +a

./gradlew test             # run unit tests
./gradlew assembleDebug    # debug build, signed with the default debu
Publisher informationSoftware details and release files are provided by the publisher.