HomeCase studiesExtending a Legacy Dealer Management System with...

Case study · Portland, United States

Extending a Legacy Dealer Management System with Dual Mobile Apps for Staff and Fleet Customers

Equipment and commercial vehicle dealerships — parts, service, rental and fleet management

Commercial equipment dealerships rely on decades-old Dealer Management Systems that govern parts inventory, service bays, and rental billing, yet remain locked behind desktop terminals. We engineered two purpose-built mobile applications—a cross-platform customer portal in React Native and TypeScript, and a ruggedized native Android staff app in Kotlin and Java—backed by a normalization gateway over the existing DMS. Yard crews, parts counter staff, and field technicians gained offline-resilient SQLite workflows for inspections and picking, while fleet buyers gained self-service visibility into work orders, rentals, and parts backorders without destabilizing core accounting.

Industry
Equipment and commercial vehicle dealerships — parts, service, rental and fleet management
Solution
A two-tier mobile ecosystem pairing a React Native customer application with a native Android operations client, bridged to an on-premise Dealer Management System through a stateful integration gateway.
Platforms
Android · Cross-platform
Stack
React Native · React · TypeScript · SQLite · Kotlin · Java
Location
Portland, United States · delivered remotely
Role
Engineering, with the team behind for mobile and QA

Delivered remotely for a business based in Portland, United States. Names withheld by agreement.

Project Overview

Commercial equipment dealerships depend on established Dealer Management Systems housing decades of accounting, warranty, and multi-branch inventory rules. Replacing that core is rarely practical, yet locking it to desktop terminals forces service writers, parts runners, yard inspectors, and fleet buyers into phone calls, clipboards, and manual re-keying.

We shipped a dual mobile platform extending the existing DMS into the field without modifying its transactional core. Fleet customers gained a React Native and TypeScript portal for repairs, backorders, and rentals, while dealership staff gained a Kotlin and Java Android client built for rugged handhelds and offline yard inspections.

Business Bottleneck

Dealership workflows break at the physical edges of the lot. When a rental excavator returns on a flatbed trailer, a yard inspector walking the machine in a concrete lot outside Wi-Fi range used to scribble damage notes on paper, walk back to a terminal, and type them into the DMS hours later—often after billing had already closed the contract.

On the customer side, commercial fleet managers overseeing dozens of units across multiple job sites had no self-service view into repair bay progress or parts availability. Every status check became an inbound call to a service advisor, interrupting shop dispatchers and delaying estimate approvals that held up bay throughput.

Architectural Strategy

Rather than coupling mobile screens directly to brittle legacy DMS endpoints, we introduced an anti-corruption integration boundary and split the client architecture along operational lines:

  1. Dual-client specialization. Fleet customers operate across personal iOS and Android devices and need clean contract, invoice, and approval workflows; React Native with TypeScript and Redux delivered parity across both platforms from one codebase. Dealership staff operate company-issued Android terminals with integrated laser scanners and unreliable bay connectivity; Kotlin and Java with Retrofit gave direct access to peripheral SDKs and deterministic background sync.
  2. Offline-by-default mutations. Both mobile clients persist active work queues and reference lookups in embedded SQLite so network drops in steel-framed parts warehouses never discard technician labor or inspection photos.
  3. Contract-isolated DMS adaptation. Legacy flat-file and multi-table DMS conventions stay behind a normalization service that exposes typed, paginated JSON resources to mobile apps.

Core Capabilities

Customer Self-Service Portal (React Native & TypeScript)

  • Live Fleet & Rental Visibility: Equipment owners view active rentals, scheduled preventative maintenance windows, hour-meter histories, and branch locations from a normalized Redux store.
  • Estimate & Repair Approvals: Service writers push itemized labor and parts estimates straight to the customer's device, capturing timestamped digital sign-off that flows back into the DMS repair order.
  • Parts Order & Backorder Tracking: Customers search dealer parts availability by part number or equipment serial, submit replenishment requests, and track special-order fulfillment stages.

Dealership Staff Companion (Kotlin, Java & Retrofit)

  • Rental Check-In / Check-Out Inspections: Guided walk-around checklists capture condition ratings, fuel/hour readings, and annotated defect photos directly in SQLite before syncing to the branch contract.
  • Warehouse Parts Picking & Bin Verification: Hardware barcode scans validate picked SKUs against open shop tickets and highlight bin discrepancies before inventory moves.
  • Mobile Service Bay Updates: Technicians clock onto labor operations, attach diagnostic notes, and flag needed parts from beside the vehicle rather than queuing at shared shop kiosks.

Technical Architecture

The customer application organizes domain state into Redux slices keyed by branch, unit, and work-order ID, backed by an embedded SQLite cache for fast cold starts and read resilience when visiting remote job sites. Requests pass through a typed TypeScript API client that enforces schema validation at runtime before hydrating UI components.

The staff Android application pairs existing Java peripheral/scanner utilities with Kotlin feature modules structured around Repository and ViewModel boundaries. Retrofit and OkHttp interceptors manage short-lived branch tokens, attach per-request idempotency keys, and serialize outbound SQLite mutation queues once connectivity stabilizes.

Flow: React Native Customer App (Redux + SQLite) & Native Android Staff App (Kotlin/Java + Retrofit + SQLite) → Typed REST Integration Gateway → Legacy DMS Adapter & Concurrency Guard → On-Premise Dealer Management System.

Technology Stack

Category Technology
Customer Mobile UI React Native with React and strict TypeScript view models
Customer State Layer Redux store with normalized entity slices and optimistic request tracking
Staff Native Client Kotlin for new feature modules interoperating with legacy Java services
Networking (Android) Retrofit with OkHttp interceptors, token refresh authenticators, and typed converters
Local Persistence Embedded SQLite on both clients for offline mutation queues and catalog caches
DMS Integration Bridge Anti-corruption adapter layer translating legacy DMS record schemas into JSON DTOs
Media & Evidence Chunked photo upload pipeline with EXIF stripping and local retry state
Device Capabilities Hardware barcode scanning for parts bins and VIN/serial plates on Android terminals
Conflict Handling Version-stamped work-order locks and idempotency keys on mutating endpoints
Security & Auth Branch-scoped RBAC tokens with encrypted local credential storage

Engineering Trade-offs & Solutions

Challenge Architectural Solution
Desktop DMS locks a repair order whenever a service advisor opens it on a terminal Implemented non-blocking staging tables in the integration gateway: mobile technician notes and inspection photos commit immediately to staging, then merge into the DMS work order once the desktop lock clears, alerting advisors if a manual review is required.
Yard staff lose Wi-Fi behind metal equipment sheds mid-inspection Stored every checklist step, signature stroke, and photo URI in SQLite as an ordered mutation log; a background sync worker drains the queue sequentially via Retrofit and retains failed items with diagnostic codes rather than dropping data.
Parts catalogs contain hundreds of thousands of SKUs that overwhelm mobile memory Replaced full-catalog downloads with branch-scoped incremental delta syncs into indexed SQLite tables, keeping keyword and barcode lookups responsive without bloating device storage.
Legacy Java scanner libraries lacked null-safety and clashed with modern Kotlin coroutines Wrapped the vendor Java SDK behind narrow Kotlin adapter interfaces with explicit @Nullable annotations and single-threaded dispatcher boundaries, isolating hardware quirks from UI state.
Customer estimate approvals required legal auditability across time zones Recorded server-verified UTC timestamps, device identifiers, customer user IDs, and immutable line-item snapshots at approval time, passing a signed confirmation reference into the DMS notes log.

Security & Reliability

Dealership networks span regional branches with strict financial boundaries. Authentication issues branch-scoped tokens enforced at the gateway so customer accounts cannot probe unrelated fleets and parts clerks cannot alter inventory at neighboring branches.

On-device SQLite avoids storing payment credentials; session tokens reside in platform-encrypted storage (EncryptedSharedPreferences on Android and Keychain on iOS). Mutating Retrofit and TypeScript calls carry deterministic UUID idempotency keys so unstable cellular handoffs never duplicate rental check-ins or parts requisitions.

Performance & Scale

Legacy DMS engines target localized terminal queries rather than concurrent mobile polling. The integration gateway shields the DMS by caching read-mostly catalog and unit metadata, coalescing duplicate branch queries, and enforcing paginated updated_since delta endpoints instead of full-table pulls.

On mobile, Redux selectors memoize derived fleet views to keep React Native scrolling smooth across large equipment rosters, while Android inspection media resizes and compresses locally before entering the Retrofit queue.

Operational Outcomes

Extending the DMS to mobile devices eliminated the transcription lag between physical yard events and back-office billing. Inspection photos, meter readings, and damage signatures enter the repair and rental pipeline directly at the machine rather than hours later at a counter terminal.

Service advisors regained shop-floor focus because fleet customers inspect unit status, verify parts backorders, and approve repair estimates directly from their phones—modernizing field operations without a disruptive core DMS migration.

01 — Questions

asked about this kind of project

Why build two separate mobile codebases instead of a single cross-platform app for both staff and customers?

Customer fleets bring heterogeneous iOS and Android devices and primarily consume read-heavy contract, invoice, and estimate approval flows. Dealership yard and parts staff operate standardized ruggedized Android scanners inside metal service bays where hardware barcode triggers, background foreground-services for photo sync, and existing Java peripheral SDKs are non-negotiable. Separating React Native for customers from Kotlin/Java for staff matched each user group to the right operational constraints.

How do you prevent mobile writes from corrupting an older DMS that lacks modern optimistic concurrency?

The integration gateway maintains an explicit version hash and branch lock status for open work orders and rental check-outs. Every mutating request from Retrofit or React Native carries an idempotency key and the record snapshot timestamp read by the device. When a counter clerk modifies the same repair order in the desktop DMS before an offline technician reconnects, the gateway detects the field-level delta and routes the collision to a supervisor review queue rather than overwriting billing lines.

What belongs in the client SQLite database versus staying live-only?

Reference data that changes predictably—parts master catalogs, inspection checklist templates, customer unit rosters, and pending outbound mutations—lives in SQLite so yard staff never stall in dead cellular zones. Live financial balances, real-time bin counts during active picking, and final invoice totals are fetched fresh at commit time so neither customers nor clerks act on stale monetary or stock figures.

How did Kotlin and Java coexist cleanly inside the staff Android application?

Core barcode hardware wrappers and legacy DMS serialization utilities remained in battle-tested Java packages with explicit nullability annotations, while all new inspection screens, ViewModels, and Retrofit service definitions were written in Kotlin. Keeping a clean boundary at the repository layer avoided a risky big-bang rewrite while eliminating null-pointer defects in new workflows.

How does the system handle large multi-megabyte inspection photo batches over weak yard Wi-Fi?

Images are compressed on-device, paired with a checksum and local SQLite upload state, and dispatched sequentially by a background worker rather than blocking the UI thread. If connectivity drops mid-batch, Retrofit resumes from the next unacknowledged photo without re-uploading completed files or duplicating inspection records.

How are legacy DMS schema quirks hidden from mobile clients?

The adapter layer acts as an anti-corruption boundary: fixed-width status codes, branch-specific tax flags, and multi-table DMS joins are normalized into stable, versioned JSON contracts. Mobile releases can ship independently of DMS patch cycles as long as the adapter preserves contract compatibility.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.