- Status
- Shipped
- Timeline
- 2022
- Kind
- Professional
- Role
- Flutter Developer & Team Lead
- Client
- Loftie, Inc., via Mindbowser
Overview
Loftie makes a smart alarm clock and a bedside lamp meant to keep phones out of the bedroom, and its Flutter app is the control hub for both. I built the app for iOS and Android: pairing and controlling the devices over Bluetooth Low Energy, alarms including a two-phase wake-up, wind-down and bedtime reminders, and lamp settings.
Approach
BLE runs on the Flutter BLE packages, following Google's BLE guidance — they already covered the native side, so no custom platform channels were needed. Bloc handles state; Firebase and Google Cloud provide real-time sync and push notifications; and the app integrates the product's AWS-hosted APIs.
Challenges
Talking reliably to a physical device
Most of the engineering effort went into making communication with the clock and lamp reliable when a device is out of range, mid-reconnect or in an unexpected state.
Stack
- mobile
- Flutter
- Bluetooth Low Energy (BLE)
- Dart
- Bloc
- backend
- Firebase
- Firebase Cloud Messaging
- REST APIs
- cloud-devops
- Google Cloud Platform