Service · live apps
BLE app rescue for unstable Bluetooth apps
For an app that's live, unstable and hurting your reviews or support queue. I stabilize the BLE layer first, then the rest, and leave it documented for whoever owns it next.
App in productionDevice under testRoot cause, not patches- Pricing
- weekly rate €X, after the audit
- Start
- Usually with the audit
- Good for
- Connection drops, failed updates, phone-specific bugs
- Ends with
- Stable BLE layer, diagnostics, docs
Short answer
How do you fix a BLE app that keeps disconnecting?
Find the real causes first with logs from real phones, then rebuild the BLE layer's foundations: one GATT operation queue, explicit connection states, close() on every terminal path, reconnection with backoff and clear handling of each disconnect status, and add diagnostics so the next field issue arrives with evidence.
- Step 1
- Audit with real logs
- Step 2
- Fix the BLE foundations
- Step 3
- Diagnostics in the app
- Step 4
- Docs and hand-over
Symptoms
What an unstable BLE app looks like inside
// typical unstable app, one reconnect cycle → connectGatt(autoConnect=false) ← onConnectionStateChange status=0 CONNECTED → discoverServices() → writeCharacteristic(0x0012) // before discovery finished ← write returned false (busy) ← onConnectionStateChange status=8 DISCONNECTED → connectGatt(...) // old gatt never closed ← status=133 in 60 ms
What I usually find
- Operations fired in parallel, so writes fail silently while discovery is running.
disconnect()withoutclose(), leaking clients until every connect returns 133.- Connection state spread over five classes and three flags that disagree.
- Retry loops with fixed delays that hide timing bugs on the team's phones.
- No logs from the field, so every bug report starts with “it disconnects sometimes”.
Process
How a rescue runs
- 01
Find the real causes
The audit, using logs from your users where possible, so we fix what's actually failing.
- 02
Fix the BLE layer first
State handling, queueing, reconnection and error recovery, before any feature work.
- 03
Add diagnostics
Structured connection logs users can send from the app, so field issues come with evidence from now on.
- 04
Document and hand back
An architecture map and decisions for your team, or I keep maintaining it.
Outcome
What you get from a rescue
I've done this as the owner
I've done this as the primary owner of a production BLE stack: mapping an unfamiliar codebase, refactoring state and error handling, reworking Flow-based connection state and extracting the core into an SDK. Read the case study.
A rescue isn't a rewrite. I keep what works, change the foundations in small reviewed steps, and keep the app shippable the whole time.
What changes for your users
- Connections that come back on their own after a drop.
- Clear messages when something really is wrong, instead of an endless spinner.
- Firmware updates that finish, or resume where they stopped.
- Fewer Bluetooth tickets for support, and useful logs for the ones left.
FAQ
Questions teams ask
All questionsDo you rewrite the app?
No. A rescue keeps what works and fixes the BLE foundations in small, reviewed steps, so the app stays shippable the whole time. A rewrite is rarely needed and rarely the fastest way to stability.
Can you take over an app another developer or agency built?
Yes. I start by mapping and documenting the existing architecture, then stabilize the BLE layer before adding features. I have taken over and become the primary owner of a production BLE stack this way.
Our app is in Flutter or React Native. Can you rescue it?
Usually, yes. BLE problems in cross-platform apps often sit in the native Android or iOS layer under the Bluetooth plugin, which is where I work. I ship production React Native too. If the plugin itself is the problem, I'll say so and propose options.
How long does a BLE app rescue take?
It depends on what the audit finds. The audit ranks the problems and sizes the fixes, so the rescue is planned and priced from that, usually in weekly steps you can stop after any week.
Keep reading
One appMany devicesOwning a production BLE stack
How I took over the Android BLE layer of a connected-device product, made connections more stable and extracted the core into an SDK.
ArticleAndroid BLE connection drops: what status 8, 19 and 22 mean and how to fix them
Why Android BLE connections drop: what disconnect statuses 8, 19, 22 and 0x3D mean, how to tell them apart, and a reconnect policy that works.
ArticleWhy your Android BLE app needs a GATT operation queue (and how to write one in Kotlin)
Android's BluetoothGatt runs one operation at a time, so a second one fails. Why that makes BLE apps flaky, and a Kotlin coroutine queue that fixes it.
Device works, app doesn't?
Tell me about your device and what's breaking. No pitch deck needed. I'll tell you what I'd look at first, even if it isn't hiring me.
Free · NDA on request · reply within 1–2 working days