Anas SMS Reader - Automated Payment SMS Confirmation for Bangladesh
[AG
by Anas Gazi](/content/u/k4ESuwlPH3ag9882/index.html)
Anas SMS Reader is a lightweight, production-ready Android app built for reliable detection, parsing, and automatic confirmation of bKash, Nagad, Rocket, and Upay payment SMS in Bangladesh. It ensures robust background operation with a persistent notification, smart SMS filtering, precise extraction of transaction details, and instant API confirmation, all wrapped in a minimal, clean interface designed for real-world reliability, privacy, and transparency on modern Android devices.
See it in action
Interactive preview — try it before you build
How it works
- Pick your starting point
Use this app or start from scratch - Describe your changes
Tell AI what to customize — in plain English - Ship it
Your app goes live with free hosting
The AI prompt behind this app
Copy this prompt to build something similar, or start with the full app above.
Develop a professional, lightweight native Android application named "Anas SMS Reader" designed for reliable automatic detection and confirmation of mobile financial service payments in Bangladesh (bKash, Nagad, Rocket, Upay).
Core Requirements:
- On first launch, gracefully request and handle the following runtime permissions: RECEIVE_SMS, READ_SMS
- Implement a foreground service with a persistent notification titled "Anas SMS Reader Active" and description "Monitoring for payment SMS - Do not close" to ensure reliable background operation and prevent the app from being killed by the system
- Continuously listen for incoming SMS messages in the background using a BroadcastReceiver
- Filter incoming SMS: Process only messages where the sender address contains keywords like "BKASH", "NAGAD", "ROCKET", "UPAY" (case-insensitive)
- For matching SMS:
- Capture the sender phone number and full message body
- Automatically parse the message for:
- Payment amount: Search for patterns such as "Tk ", "BDT ", "Taka " followed by numeric value (e.g., "Tk 500.00" → "500")
- Transaction ID (trxId): Search for patterns such as "TrxID ", "Trx ID ", "Transaction ID ", "Ref " followed by alphanumeric code (e.g., "TrxID ABC123XYZ" → "ABC123XYZ")
- Immediately send an HTTP POST request to the fixed webhook URL: https://jleugjmibejzobcsnwmu.supabase.co/functions/v1/sms-confirm
- Request headers: Content-Type = application/json (no API key required)
- JSON payload:
{
"sender": "<sender_phone_number>",
"message": "<full_sms_message_body>",
"amount": "<extracted_amount_or_empty_string_if_not_found>",
"trxId": "<extracted_trxId_or_empty_string_if_not_found>"
}
- On successful response (200 OK): Display a system notification "Payment SMS detected & successfully confirmed!"
- On failure (network error or non-200 response): Display a system notification "SMS received but failed to send to server - will retry"
User Interface (Minimal and Clean):
- Main screen with a prominent large button labeled "Start Service" / "Stop Service" (toggle based on current state)
- Status text label showing "Service Running" (green) or "Service Stopped" (red)
- Scrollable log list displaying the last 5 processed SMS messages (for debugging and transparency, format: "From: sender | Amount: X | TrxID: Y | Time: HH:MM")
Additional Best Practices:
- Battery optimization: Use efficient parsing and minimal network calls
- Error handling: Log errors locally and retry failed webhook posts up to 3 times
- Security: Do not store any sensitive data; all processing in memory
- Compatibility: Target Android 8.0 (API 26) and above for modern device support
- Generate a production-ready, signed APK suitable for sideloading on dedicated devices
Prioritize reliability for background execution on real devices (e.g., Xiaomi, Samsung with aggressive battery management).
Ready to build yours?
This app was built with AI in minutes — and you can do the same. Start with Anas SMS Reader - Automated Payment SMS Confirmation for Bangladesh and customize it however you want, or describe something entirely new.