{"docs":[{"id":183,"title":"BLE in Mobile Apps: Scanning, Connecting and Moving Data","heading":"BLE in Mobile Apps: Scanning, Connecting and Moving Data","subheading":null,"category":"IoT","body":{"root":{"type":"root","children":[{"type":"heading","tag":"h3","version":1,"children":[{"type":"text","text":"Moving data efficiently","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"GATT exposes data as characteristics grouped into services. Use reads for values the app asks for occasionally, notifications for values the device pushes, and write without response for bulk transfers where the application checks integrity itself. Indications and write with response are acknowledged, so each costs a round trip.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Throughput depends mostly on MTU, connection interval and packets per connection event, all negotiated between phone and device. iOS negotiates MTU automatically; on Android the app requests it. Measure on the phones your users own, as results vary between models.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"tags":"IoT, Bluetooth LE, Mobile Apps","cardCta":{"label":null,"link":null},"pageCta":{"label":"Talk to AAVICO engineering","link":"/contact"},"excerpt":"Bluetooth LE between a phone and a device looks simple in a demo and gets harder in the field. Much of the difficulty lies in how iOS and Android behave.","featuredImage":null,"type":"Blog","readTime":"3 min read","publishedAt":"2026-11-15T15:46:00.000Z","heroImage":null,"introText":"Bluetooth Low Energy is the usual link between a phone and a nearby device: fitness trackers, locks, meters and the setup step of many Wi-Fi products. The protocol is well defined, but the mobile operating systems wrap it in their own rules on permissions, background operation and connection management. This article covers the three stages every app goes through, scanning, connecting and moving data, and where each usually goes wrong.","metrics":[{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-metric-1","value":"23 bytes","label":"The default ATT MTU, leaving 20 bytes of payload per packet until a larger MTU is agreed.","icon":null},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-metric-2","value":"517 bytes","label":"The largest ATT MTU defined. Phones and chips often settle on less.","icon":null},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-metric-3","value":"0x2902","label":"The descriptor a client writes to switch on notifications or indications.","icon":null},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-metric-4","value":"31 bytes","label":"The payload limit of a legacy advertising packet, shared by name, UUIDs and data.","icon":null}],"gallery":[],"challenge":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Scanning and connecting differ by platform. Android requires the BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions from Android 12, and location permission before that. iOS never reveals the device address and assigns its own identifier, so an app cannot recognise a device by its MAC address.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Data transfer has its own traps. Android GATT accepts one operation at a time per connection, so an app that issues several writes without waiting for each callback sees some rejected or lost.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"blockquote":{"quote":"Design the GATT table and the app together. A service that is awkward on a phone gets worked around badly.","author":"","role":"AAVICO Engineering"},"supportImage1":null,"deliverables":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Filter scans by service UUID rather than name, and stop scanning once the device is found. Android throttles apps that start scans too often.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Wrap every GATT operation in a queue that waits for its callback, with a timeout, and handle disconnection at any point in the sequence.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Test background behaviour, reconnection after the phone sleeps, and Bluetooth switched off mid-transfer, on both platforms.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"results":[{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-result-1","title":"Reliable Links","description":"Devices are found and reconnected predictably on iOS and Android."},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-result-2","title":"Throughput","description":"MTU and connection parameters suit what the data actually needs."},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-result-3","title":"No Lost Writes","description":"A serialised operation queue removes a whole class of intermittent bugs."},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-result-4","title":"Smooth Permissions","description":"Users are asked for Bluetooth access with clear reasons at the right moment."}],"lookingAhead":{"root":{"type":"root","children":[{"type":"paragraph","version":1,"children":[{"type":"text","text":"Use standard services defined by the Bluetooth SIG, such as Battery Service or Device Information, where they fit. Custom services need 128-bit UUIDs.","version":1}]},{"type":"paragraph","version":1,"children":[{"type":"text","text":"Decide early whether data must flow while the app is in the background. Both platforms restrict this, and the design differs if it is needed.","version":1}]}],"direction":"ltr","format":"","indent":0,"version":1}},"supportImage2":null,"testimonial":{"quote":null,"author":null,"role":null,"photo":null},"challengesSolved":[{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-challenge-1","title":"Devices identified by an address iOS never shows","description":null,"icon":null},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-challenge-2","title":"Overlapping GATT calls that fail intermittently","description":null,"icon":null},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-challenge-3","title":"Transfers capped by a 20-byte payload","description":null,"icon":null},{"id":"ble-in-mobile-apps-scanning-connecting-and-movin-challenge-4","title":"Scans that drain the phone battery","description":null,"icon":null}],"relatedPosts":[],"contactUs":{"show":true},"updatedAt":"2026-11-15T17:32:32.682Z","createdAt":"2026-11-15T17:32:32.682Z"}],"hasNextPage":false,"hasPrevPage":false,"limit":10,"nextPage":null,"page":1,"pagingCounter":1,"prevPage":null,"totalDocs":1,"totalPages":1}