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

Answers that fall short

Who gets asked this

More Device Capabilities questions