Alex MitrovicBLE & IoT app developer, Android and iOS

Hire · iOS

iOS BLE development with CoreBluetooth, on a core shared with Android

I build the iOS side of BLE apps on the same Kotlin Multiplatform core as the Android app, with the CoreBluetooth parts written natively in Swift. And I'll tell you plainly which iOS work I'd take on alone.

An iPhone, a small round Bluetooth tag and an earbuds case on a deskiPhonePeripheralBackground modes

Short answer

How is BLE different on iOS than on Android?

On iOS, CoreBluetooth hides device MAC addresses behind per-app identifiers, negotiates MTU on its own, pairs automatically when a characteristic needs encryption, has no connection timeout, and keeps an app connected in the background only with the bluetooth-central mode and state restoration, so the same device logic needs different code on each platform.

iOS work
CoreBluetooth in Swift, SwiftUI UI
Shared
Device logic in Kotlin Multiplatform
Focus
Background modes, state restoration
Honest
Android is my home ground

Differences

Android vs iOS BLE at a glance

Most cross-platform BLE bugs are one of these rows. Details on iOS background behavior in CoreBluetooth state restoration.

Where the same BLE device needs different code on each platform.

TopicAndroidiOS (CoreBluetooth)
Device identityMAC address (or a random private address)A per-app UUID; the MAC isn't exposed
PermissionBLUETOOTH_SCAN / BLUETOOTH_CONNECT (12+), location beforeOne Bluetooth prompt; NSBluetoothAlwaysUsageDescription
Connection timeoutAround 30 s with autoConnect = falseNone: connect stays pending until you cancel
MTUYou call requestMtu()Negotiated by iOS; read maximumWriteValueLength
PairingcreateBond(), or triggered by encryptionTriggered when a characteristic needs encryption
BackgroundForeground service with type connectedDevicebluetooth-central mode, state restoration
Scanning in backgroundPendingIntent scans, filters needed screen-offOnly with service UUID filters, no duplicates
Operation queueYours to build: one op at a timeCoreBluetooth queues, but you still order the flow

Scope

What I take on in an iOS BLE app

What I do on iOS

  • The CoreBluetooth layer in Swift: central manager, peripheral delegate, scanning with service filters.
  • Background modes and state restoration, so the app reconnects when iOS relaunches it.
  • Pairing flows triggered by encrypted characteristics, and clear recovery when a bond breaks.
  • SwiftUI screens on top of the shared Kotlin Multiplatform core.
  • Keeping Android and iOS behavior the same where users expect it to be.

Where I'm honest about limits

Android is my home ground with 8+ years. iOS is my growing side: CoreBluetooth background modes and state restoration are where I'm going deepest right now.

Say plainly which iOS work you take on alone, and where you'd pair with an iOS specialist (e.g. App Store release management, complex UIKit code).

If a project needs a senior iOS-only developer for everything around the BLE layer, I'll say so on the first call.

Architecture

One core, two native BLE layers

App architecture for a BLE deviceNative Android and iOS UI on top of one shared Kotlin Multiplatform core with the connection manager, GATT operation queue, protocol and device state, which talks to BluetoothGatt on Android and CoreBluetooth on iOS, and through the radio to the device firmware. Android UIJetpack Compose iOS UISwiftUI Shared core · Kotlin Multiplatform Connection manager GATT queue Protocol + OTA Device state BluetoothGatt CoreBluetooth Your device · firmware

Why build iOS on a shared core

The connection manager, the protocol, the OTA flow and the device state are the same for both apps. Writing them once in Kotlin Multiplatform means iOS gets the same tested logic Android has, and a fix lands on both platforms at once.

The CoreBluetooth layer underneath stays native, because it has to: its threading, its restoration and its pairing rules are different from Android's. How I split it.

FAQ

Questions teams ask

All questions
Can you build only the iOS app for our existing Android BLE app?

Often, yes, especially if the Android app's device logic can move into a shared Kotlin Multiplatform module that iOS then uses. On a first call I'll look at how the Android app is structured and say whether that's the fastest route.

Why doesn't iOS show the device's MAC address?

CoreBluetooth gives each peripheral a UUID that's stable for your app on that phone, and doesn't expose the MAC address. If your onboarding or backend identifies devices by MAC, the firmware should put an ID in the advertising data or a characteristic instead.

Can an iOS app stay connected to a BLE device in the background?

Yes, with the bluetooth-central background mode. iOS may still suspend or terminate the app; with state restoration, iOS relaunches it in the background when the device sends data or reconnects, and the app picks up where it left off.

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.

Book a free call

Free · NDA on request · reply within 1–2 working days