MBS e-Connect Mobile App
Mobile Developer · Mercan Brilliant Schools

Overview
MBS e-Connect is the React Native / Expo app for the Mercan Brilliant Schools community. The latest release replaces guardian password logins with activation-code and PIN onboarding, adds the full school-fees journey (published invoices, Paystack checkout, virtual accounts, receipts and PDF export), and hardens day-to-day reliability with API-aware connectivity, token rotation, biometric app lock and offline caches.
What I did
- 01Rebuilt guardian sign-in around a one-time activation code, a 4-digit PIN and a 32-byte device secret, with OTP verification on new devices.
- 02Built the fees experience end to end: invoice list, Paystack checkout, dedicated virtual account, payment polling, receipt screen and PDF export.
- 03Added a secretary/bursar flow for creating, editing and publishing fees, plus payment export and per-student ledger views.
- 04Added biometric app lock (Face ID / fingerprint) behind a lazily loaded native module so older dev clients still boot.
- 05Made fees and chat offline-first: an AsyncStorage cache with stale fallback for fees, and a SQLite outbox with incremental sync for chat.
- 06Split routing into parent, student, teacher and admin areas with a shared role-aware dashboard and refreshed MBS splash/branding.
- 07Added trusted-device management and a device-locked modal that tells the user exactly how to get unlocked by school ICT.
Key features
- PIN onboarding and login for guardians; email/username login for staff and students
- New-device OTP with a 60-second resend cooldown and trusted-device management
- Published school fees, card checkout, virtual accounts and downloadable receipts
- Admin fee creation, publishing, payment export and per-student ledger
- Biometric app lock with device-passcode fallback
- Attendance, results, quizzes, live classes and school notifications
- WhatsApp-style chat with an offline outbox and incremental sync
- Role-specific dashboards for parents, students, teachers and administrators
Bugs fixed & failure modes handled
The app showed “online” on any Wi-Fi, even when the school API was unreachable.
FixConnectivity now combines NetInfo with real API reachability, probes every 15 seconds while offline, and clears the banner only when the server answers.
A 401 from an expired 15-minute access token dropped the user back to login.
FixThe API interceptor refreshes the token once and retries the request, excluding PIN endpoints so their own error codes still reach the UI.
Chat sync timers kept running after sign-out and could fire against the next session.
FixStopping the chat engine now clears the user identity before clearing timers, so in-flight syncs stop immediately.
The fees screen had nothing to show when the connection dropped.
FixFees are cached per user and served network-first with a stale-data fallback, then refreshed on reconnect.
Optional endpoints returning 404 flooded the development error overlay with noise.
FixAdded a typed `silent` request option so expected failures stay out of the console overlay.
Older dev clients crashed when biometrics, crypto, print or sharing modules were missing.
FixNative modules are imported lazily, so the app still starts and the feature is simply unavailable until the client is rebuilt.
Integrations
- NestJS mobile API
- Paystack checkout and webhooks
- Infobip OTP / SMS
- WhatsApp notifications
- Expo Notifications / FCM
- Expo Updates (OTA)
- Cloudinary media storage
- AsyncStorage and SQLite
Engineering highlights
- Access tokens rotate automatically; PIN login failures are never masked by a refresh attempt.
- Every fee amount is calculated server-side — the app never submits a price.
- The offline banner reflects the school server, not just the phone's radio.
Tools used
- React Native
- Expo
- Expo Router
- TypeScript
- TanStack Query
- AsyncStorage
- SQLite
- NativeWind
- Axios
- Expo SecureStore
- Expo LocalAuthentication
- Expo Print
- REST APIs
- WebSocket
Tools & access needed
- Node.js 24+ and npm
- An Expo dev client rebuilt for the native modules (biometrics, crypto, print, sharing)
- EXPO_PUBLIC_NEST_URL pointing at the MBS mobile API
- Android keystore / EAS credentials for release builds
- google-services.json for push notifications
- Backend access for PIN auth, fees, Paystack and chat
Guardians can activate, pay and download a receipt without visiting the school — and the app keeps working when the network doesn't.
