All jobs / Mobile developer / Device Capabilities
Mobile developer interview question · 5+ years
A field app talks to a Bluetooth sensor. In the lab it is solid; in the field users say it “just stops”.
How do you design the connection?
The strongest answer
As a state machine that expects to lose the link: scan, connect, discover, subscribe — and on a drop, reconnect with backoff and rebuild the subscriptions. Bluetooth off and out of range are states, not crashes
Why it works
Exactly — the field is interference, range and a phone that sleeps, so the design has to make losing the link ordinary.
What a good answer covers
- Assume the link will drop.
- Model it as a state machine.
- Rediscover and resubscribe on reconnect.
- Back off instead of scanning forever.
Answers that fall short
- Close, but not the strongest: Reconnect automatically whenever the connection drops, so the user never has to go back to the pairing screen
That is the core move, and it is not enough on its own: after a reconnect the services and subscriptions have to be rebuilt. - Weak: Hold the connection open for the life of the app so that it cannot drop
You do not control the link; the radio, the peripheral and the OS can all end it, and the app has to cope. - Red flag: Scan continuously in the background so the sensor is always found instantly
Continuous background scanning drains the battery and is restricted by the platform — it will be throttled, not rewarded.
Who gets asked this
More Device Capabilities questions
- The feature is “attach a photo to a report”. Do you build a camera screen inside the app?
- A step-counting screen keeps draining the battery long after the user has moved on to another screen. What do…
- The feature is “attach one photo.” Which permission story is right in 2026?
- You add biometric unlock. What else must exist?
- Product asks for location “always” so a map feels snappier. What do you do?
- A delivery app asks for the highest-accuracy location updates continuously so the map pin never lags. How do…
- Product wants the app to notice NFC tags as the user walks past them, with the app closed. What do you tell…