
CASE STUDY · PERSONAL PROJECT · PERSONAL SAFETY · B2C / B2B
AmanBeat
A personal safety app that sends an SOS with GPS location by SMS, call and push notification to trusted contacts, backed by a business portal and an admin console.
- ROLE
- Product Owner, Architect & Full-Stack Developer
- PERIOD
- Jul 2026 - Present
- TYPE
- Personal project
- LOCATION
- Kuwait
01 — OVERVIEW
In a dangerous situation (assault, medical emergency, accident, an elderly person alone, a lone worker), the victim rarely has time to unlock the phone, open an app and type a message.
AmanBeat reduces the alert to a single gesture, works without Internet, and always shows exactly what was sent and what failed. It is a complete B2C + B2B product: a mobile app (Android, iOS, Wear OS), a Business Portal for companies and a Super Admin Portal for the AmanBeat team, on a serverless Firebase backend. I designed, built, tested and prepared it for release on my own. Version 1.0 is currently being published on Google Play.
02 — PRODUCT MANAGEMENT
- 01Vision and audienceAn SOS in a single gesture, reliable even without a network, for individuals (B2C) and for companies’ lone or mobile workers (B2B).
- 02Business modelFree Basic with ads, Premium subscription with a 3-day free trial, Enterprise plan paid by the employer. Everything used during an emergency stays free and ad-free.
- 03OrganisationAgile project management in Jira (epics, stories, sprints), Git Flow and architecture documentation.
- 04Product breakdownThree products run in parallel, the mobile app (Android, iOS, Wear OS), the Business Portal and the Super Admin Portal, plus the public website.
- 05Architecture decisionsClean Architecture on mobile, serverless Firebase back end, multi-tenant data isolation per company, privacy by design.
- 06ComplianceGDPR, versioned consent, limited data retention, Google Play declarations for sensitive permissions.
- 07ReleaseDomain and hosting (Cloudflare, Firebase Hosting), store listing, screenshots and video, app signing. Version 1.0 is being published on Google Play.
04 — KEY FEATURES
The alert goes out in seconds, even with the phone locked, the app closed or no Internet (direct SMS and call).
Trusted contacts receive the exact position and address, and can follow the alert.
Evidence (audio, video) can be recorded automatically and stored securely.
After a false trigger, an “I'm OK” message reassures everyone.
For companies, a manager sees an employee's alert in real time, takes charge of it and follows it to resolution.
05 — MY ROLE
- Product owner
- Scope, B2C + B2B business model, pricing plans, Agile management with Jira (epics, stories, sprints).
- Architect
- Clean Architecture mobile app, serverless backend, multi-tenant data isolation, privacy by design.
- Full-stack developer
- Flutter app, native Android (Kotlin) and iOS (Swift) code, Wear OS app, two Astro web apps, ~30 Cloud Functions.
- Security and compliance
- Security Rules tested with the emulator, role-based access, audit logs, GDPR account deletion, Google Play sensitive-permission declarations.
- Quality and release
- Unit, widget and on-device integration tests, automated store screenshots and demo video, store listing and signing.
06 — IMPACT
- 3 products: mobile app (Android, iOS, Wear OS), Business Portal and Super Admin Portal, plus the public website.
- 200+ Dart files and about 60 Flutter test files.
- About 30 Cloud Functions.
- 6 languages, including Arabic in RTL.
- 10+ ways to trigger an SOS.
- Status: version 1.0, currently being published on Google Play.
07
Mobile app (Android, iOS, Wear OS)
- For: individuals (people walking home alone, students, travellers, elderly people and their families, people with a medical condition, parents) and employees of client companies.
- Problem solved: triggering an alert in one gesture, even when the phone cannot be unlocked or there is no network.
- SOS in one gesture, 10+ triggers: long press on the main button, offline voice keyword, home-screen widget (Android and iOS), Android Quick Settings tile on the lock screen, app-icon shortcut, notification button, triple press on the power button (Android), Siri / App Intent (iOS) and Wear OS watch.
- Cancellable countdown, with an optional cancel PIN (against forced cancellation by an attacker) and a silent mode.
- Platform-specific sending: on Android, SMS and call go out directly with no user action; on iOS, where Apple forbids this, the app prepares the message and the call. No fake success: each contact shows its real status (sent, delivered, failed).
- GPS position and address in the alert, with an interactive map.
- Offline-first: alerts and history are stored locally (SQLite). A persistent queue syncs to the server when the network is back, even if the app was killed in between.
- Trust circle: emergency contacts (import from address book, priority order) and connected AmanBeat contacts who receive the alert by push and in the app.
- Evidence: automatic audio and video recording during the SOS (chosen duration), playback in the alert detail, manual sharing, private cloud backup kept 7 days then deleted automatically.
- Alert history with every action, PDF export of an alert, “I'm OK” follow-up message.
- Company affiliation: the employee joins their company, chooses what to share (alerts, media) and gets Premium paid by the employer.
- Plans: free Basic with ads (features unlockable by rewarded video), Premium subscription with a 3-day free trial (Google Play and App Store), Enterprise. Everything used during an emergency stays free and ad-free.
- 6 languages: French, English, Arabic (full RTL), Hindi, Filipino, Simplified Chinese, legal texts included.
- Consent and privacy: versioned terms acceptance, privacy settings that reflect real system permissions, background-location request with explanation, account deletion. Light / dark theme, checked contrast, forced or recommended update via Remote Config, in-app review.
- Stack: Flutter / Dart, Clean Architecture per feature, Bloc / Cubit, get_it, go_router, Drift (SQLite) with an outbox queue, connectivity_plus. Native Android in Kotlin (foreground services, direct SMS and calls, Quick Settings tile, widget, boot start, MethodChannels). Native iOS in Swift (Siri App Intent, WidgetKit, audio/video recorders, voice listening). Wear OS app in Kotlin (Data Layer). Offline voice recognition with Vosk. Firebase (Auth with e-mail and Google Sign-In, Firestore, Storage, FCM, Crashlytics, Analytics, Remote Config, App Check), RevenueCat, AdMob, flutter_map, PDF generation, ARB i18n.
08
Public website (amanbeat.com)
- Built in the same Astro project as the Business Portal: product presentation, pricing, business plan calculator, FAQ, legal pages, 6 languages including Arabic RTL, SEO and sitemap.
09
Business Portal (web)
- For: client companies (security managers, managers, supervisors) employing lone or mobile workers: delivery staff, technicians, security guards, home-care staff, sales reps.
- Problem solved: keeping employees safe and reacting fast when one of them raises an alert.
- Real-time dashboard: open alerts, active employees, pending requests, alerts per day chart, monthly active users.
- Alert handling: filterable list, detail with map position, employee and timeline. A manager takes charge, changes the status (new, acknowledged, in progress, resolved, false alarm), adds notes, and plays media if the employee agreed to share it.
- Browser push notifications as soon as an alert arrives.
- Employees: approve or reject affiliation requests, remove an employee, search, pagination.
- Roles: administrator, supervisor, viewer, with distinct rights enforced server-side.
- Subscription and contract: plan, monthly usage, payments, contract document. Account activation by e-mail link, password reset, profile, notification preferences.
- Audit log of every sensitive action.
- Privacy: the company only sees what the employee agreed to share, never their personal account. Company alerts are kept 12 months.
- Bilingual interface (FR / EN), responsive, light / dark theme.
- Stack: Astro (pre-rendered pages served from the Firebase CDN under /business/, real-time data through Firebase), TypeScript without a UI framework, custom SVG charts. Firebase Web SDK (Auth, real-time Firestore, Storage, Cloud Messaging with a dedicated service worker, Cloud Functions). Security enforced by Firestore / Storage Security Rules and server functions, with strict per-company isolation. Firebase Hosting with security headers (HSTS, nosniff, X-Frame-Options).
10
Super Admin Portal (web)
- For: the AmanBeat team. It is the control centre of the whole platform.
- Problem solved: running company contracts, subscriptions, support and platform health from one place, safely.
- Overview: users, Premium, free, companies, contracts, SOS sent and failed, sign-ups.
- Users: search (e-mail, UID, phone), detail view, verified plan, affiliation.
- Companies: create, edit, suspend, reactivate, archive.
- Contracts: create, renew, manual payment, history, usage, closing, contract generated as PDF.
- Business accounts: create the first manager, roles, activation, reset. Subscriptions: active, trials, expired, store of origin.
- SOS and storage monitoring: volumes per period and per trigger, media, expired files.
- Push notifications: to one user, to a company's employees, to a plan or to everyone.
- System configuration: minimum and latest app version (forced update). Support requests from the business form and an audit log kept 3 years.
- Design rule: no fake numbers. A module without a data source shows “Coming Soon” and explains what is missing.
- Stack: Astro + TypeScript, separate from the public site. Hosted on Cloudflare Pages, protected by Cloudflare Access (Zero Trust) on top of Firebase Authentication. Every operation goes through a single adminApi Cloud Function that checks the role, validates each input and writes an audit log.
11
Shared serverless backend
- Cloud Functions for Firebase in TypeScript / Node.js 22: about 30 functions (Firestore and Storage triggers, callable functions, scheduled jobs, webhooks).
- Examples: alert finalisation, FCM push to contacts and companies, routing an alert to the employee's company, monthly active user count, automatic media purge after 7 days, RevenueCat webhook for Premium entitlements, trial-end reminder, GDPR account deletion, activation e-mails, protected contact form, rate limiting, PDF generation (pdf-lib).
- Detailed Firestore Security Rules tested with the Firebase emulator; a dedicated Storage bucket for SOS media, with access checked on every read.
12
Architecture & technical challenges
- Reliability first: the app never shows a global success if a critical action failed. Each channel (SMS, call, push) has its real status.
- Triggering an SOS with the app closed without intercepting the power button (forbidden by Android and iOS): screen on/off detection, foreground services, tile, widget, Siri, watch.
- Offline-first with a persistent queue that survives the app being killed.
- Android / iOS differences handled honestly: direct sending on one side, assisted sending on the other.
- Voice recognition entirely on the device; audio is never sent to a server.
- Secure multi-tenancy: each company is isolated by security rules, and the employee keeps control of what they share.
- Privacy by design: versioned consent, limited retention (7 days for media, 12 months for company alerts), automatic deletion, data minimisation.
- Full RTL interface for Arabic, 6 languages.
- Respectful monetisation: ads and subscription, but never during an emergency.
13
Skills
- Mobile: Flutter, Dart, Kotlin (native Android, services, MethodChannels), Swift (native iOS, WidgetKit, App Intents), Wear OS, Clean Architecture, Bloc / Cubit, SQLite / Drift, offline-first, OS permissions and constraints, i18n and RTL.
- Web: Astro, TypeScript, responsive mobile-first HTML/CSS, design system (tokens, light / dark), PWA / service worker, SEO.
- Backend and cloud: Firebase (Auth, Firestore, Cloud Functions, Storage, FCM, Hosting, Remote Config, Crashlytics, Analytics, App Check), Node.js, serverless architecture, Security Rules, emulators, Cloudflare Pages and Access.
- Product and business: freemium and B2B model, in-app subscriptions (RevenueCat, Google Play Billing, StoreKit), AdMob, company contracts.
- Security and compliance: GDPR, consent, data retention, role-based access control, audit logs, rate limiting, Google Play declarations (sensitive permissions, background location).
- Quality and method: unit, widget and on-device integration tests, security rules tests, Git (Git Flow), Agile / Scrum with Jira, architecture documentation, store release preparation (listing, screenshots, video, signing).
14 — TECHNICAL STACK
- Flutter
- Kotlin
- Swift
- Firebase
- TypeScript
- Astro
- Dart
- Wear OS
- Clean Architecture
- Bloc / Cubit
- Drift (SQLite)
- get_it
- go_router
- Vosk
- Cloud Functions
- Node.js 22
- Cloud Firestore
- Security Rules
- Firebase Cloud Messaging
- Remote Config
- App Check
- RevenueCat
- Google AdMob
- flutter_map
- pdf-lib
- Cloudflare Pages
- Cloudflare Access
- Jira



























