Sub topic 10
Under the hood: Bluetooth, Wi-Fi, and iCloud
This chapter assumes you have already used Handoff, Universal Clipboard, and AirDrop and can turn them on in System Settings and Settings. It explains which radios and services each feature uses and what that tells you when something fails. The descriptions follow Apple's published platform security documentation and are simplified. Apple does not publish every protocol detail, and behavior can change between OS releases.
The three layers
All three features use the same three layers.
- Identity and keys (iCloud). Your devices share an Apple Account. iCloud lets them trust each other and exchange the keys used to protect what follows.
- Discovery (Bluetooth Low Energy). Each device sends small, encrypted advertisements. Nearby devices that hold the right keys can read them. Everyone else sees noise.
- Data transfer (peer-to-peer Wi-Fi, sometimes iCloud). After discovery, the devices open a direct Wi-Fi link to move the actual content. Some small payloads travel with the Bluetooth advertisement or through iCloud.
| Feature | Who may talk | Discovery | Content transfer |
|---|---|---|---|
| Handoff | Your own devices, same Apple Account | Encrypted Bluetooth LE advertisements | Small state over the direct link. Larger data over peer-to-peer Wi-Fi, or through iCloud for some apps |
| Universal Clipboard | Your own devices, same Apple Account | Same mechanism as Handoff | Fetched when you paste, over peer-to-peer Wi-Fi |
| AirDrop | You, your contacts, or anyone, depending on your setting | Bluetooth LE advertisements | Direct peer-to-peer Wi-Fi with TLS encryption |
This is why the requirements from earlier chapters look the way they do: Bluetooth on, Wi-Fi on, same Apple Account (for Handoff and Universal Clipboard), and physical proximity.
Bluetooth Low Energy: finding each other
Bluetooth Low Energy (BLE) is a low-power form of Bluetooth designed for short messages. Your Mac and iPhone constantly send and listen for BLE advertisements, which are small broadcast packets. Continuity uses them to answer one question: is a device I trust nearby, and does it have something to offer?
Three properties matter.
- Range. BLE works at roughly the Bluetooth range, about 10 meters in open air. Walls and body position shorten it. This is the "proximity" requirement.
- Encryption. The Handoff advertisement does not say "Safari, apple.com/page" in plain text. Its content is encrypted with keys your devices share through iCloud. A stranger's device receives the packet but cannot read it.
- Rotation. Apple's design changes the identifiers in the advertisements over time, so a passive listener cannot easily follow your device around.
BLE is also why Handoff can appear without any shared network. Your iPhone on cellular and your Mac on office Wi-Fi can still exchange advertisements, because discovery does not use the network at all.
You can check that a Mac has working Bluetooth and see its state:
sw_vers
system_profiler SPBluetoothDataType | head -n 15If the report shows Bluetooth as off or shows no controller, no Continuity feature will discover anything.
Peer-to-peer Wi-Fi: moving the content
BLE is too slow for photos, documents, or large clipboard items. For those, the two devices set up a direct Wi-Fi link to each other. Apple's implementation is called Apple Wireless Direct Link (AWDL). It is a peer-to-peer Wi-Fi mode: the devices talk to each other directly instead of going through a router.
Important consequences:
- No shared network is needed. The Mac and iPhone can be on different Wi-Fi networks, or the iPhone can be on cellular only. They do need Wi-Fi turned on, because AWDL uses the Wi-Fi radio.
- Ethernet Macs still need Wi-Fi on. A desktop Mac connected by cable still uses its Wi-Fi radio for AirDrop.
- Speed depends on the link. A direct link typically moves files faster than sending them through the internet and back.
- The Wi-Fi radio is shared. While a transfer runs, the radio also serves your normal network connection. A busy or congested radio environment can slow or interrupt transfers.
On a Mac you can see the AWDL interface. It is named awdl0:
ifconfig awdl0The output includes a status: line. It reads active while the interface is in use and often inactive when idle. A missing interface or a persistent inactive state during an AirDrop attempt suggests Wi-Fi is off or the feature is blocked.
iCloud: identity, keys, and fallbacks
iCloud's main job is to establish trust, not to carry your data. When you sign in with an Apple Account, each device registers itself and receives keys that the other devices on the account can use. Handoff and Universal Clipboard encrypt their advertisements and transfers with those keys. This is why Handoff and Universal Clipboard require the same Apple Account on both devices, and why signing out on one device makes the other stop offering activities.
iCloud can also carry content. Some apps sync the data behind an activity through iCloud, such as documents stored in iCloud Drive. When you hand off such a document, the receiving device may open it from iCloud while the Handoff activity only says which document and where you were in it. The activity (small) and the document (large) can travel by different paths.
Internet access is therefore not always required for the transfer itself, but it can be required for the setup and for apps that rely on iCloud. A brand-new sign-in on a device with no internet will not get its keys.
Following a Handoff end to end
- You use an app on the iPhone. The app publishes an activity (see the developer chapter) and the system advertises over BLE that an activity is available. The advertisement is encrypted for your own devices.
- The Mac receives the advertisement, decrypts it with the shared key, and shows the Handoff icon in the Dock.
- You click the icon. The Mac asks the iPhone for the activity data over a direct connection.
- The iPhone sends the activity's saved state, usually a small dictionary of values. If the app needs more, such as a stream of data, the devices use the peer-to-peer Wi-Fi link.
- The Mac opens the matching app and restores your place.
If any step fails, you see a specific symptom: no icon means step 1 or 2 (Bluetooth, keys, or range) failed. An icon that appears and then does nothing when clicked often means step 3 or 4 failed (Wi-Fi or a link problem).
Universal Clipboard: lazy transfer
Universal Clipboard reuses the Handoff machinery. When you copy on the iPhone, the iPhone does not immediately send the content to the Mac. It advertises that a clipboard item is available. When you press Command-V on the Mac, the Mac fetches the content over the direct link at that moment.
This design explains several behaviors:
- The paste can take a moment, especially for images, because the transfer happens at paste time.
- The clipboard item is available only briefly after you copy it, on the order of a couple of minutes. Waiting too long means the item is no longer offered.
- If the iPhone leaves range or locks its radios before you paste, the paste can fail even though the copy appeared to work.
To see what arrived on the Mac, print the clipboard:
pbpasteIf pbpaste prints the old content, the transfer did not happen, so check Bluetooth, Wi-Fi, and the Apple Account before retrying.
AirDrop: a longer handshake
AirDrop adds a visible user decision and a mutual identity check.
The steps:
- Advertisement. When you open the share sheet and choose AirDrop, the sender advertises over BLE. The advertisement includes short hashes of the sender's identity details, such as the Apple Account email and phone number, not the details themselves.
- Receiver check. A device set to Contacts Only compares those hashes with its own contacts. If there is no match, it stays silent, and the sender never sees the device in the list. A device set to Everyone for 10 Minutes responds to any sender during that window.
- Direct link. The two devices connect over peer-to-peer Wi-Fi and set up a TLS-encrypted connection. In Contacts Only mode, the devices also verify each other's identity using certificates tied to the Apple Account.
- Consent. The receiver sees who is sending and a preview, and chooses Accept or Decline. Nothing is saved before this.
- Transfer. The file moves over the encrypted link.
Between your own Mac and iPhone on the same Apple Account, the devices recognize each other directly, so they appear even when you are not in your own contacts.
What the layers imply when you troubleshoot
Match the symptom to the layer before changing settings.
| Symptom | Likely layer | First check |
|---|---|---|
| Handoff icon never appears | Discovery or keys | Bluetooth on, same Apple Account, Handoff enabled, within range |
| Icon appears, click does nothing | Content transfer | Wi-Fi on for both devices, retry nearer |
| Paste returns old content | Content transfer | Wait for the transfer, copy again, check Wi-Fi |
| AirDrop peer missing from the list | Discovery or receiver setting | Receiver's AirDrop setting and unlocked screen |
| AirDrop starts then fails | Direct link | Wi-Fi on, toggle Wi-Fi, move closer |
| Everything stopped after a sign-out | Keys | Confirm the same Apple Account on both |
Privacy notes at the protocol level
- Advertisements are encrypted or hashed, so nearby strangers cannot read what you are doing.
- The direct links use encryption, so a nearby listener cannot read file contents.
- Receiving is always your choice for AirDrop. Limiting the receiving setting to Contacts Only reduces who can even see your device.
Exercise
You copy a paragraph on your iPhone, walk across the room, and press Command-V on the Mac. The Mac pastes older text. Name the layer where the failure most likely occurred, and give two things to check.
Show answer
Most likely the content transfer layer, since Universal Clipboard fetches the content over the direct peer-to-peer Wi-Fi link at paste time. Check that Wi-Fi is on for both devices (Bluetooth alone is not enough), and that the Bluetooth range and Apple Account match so the clipboard item is advertised. Also confirm the copy was recent, since the item is offered only for a short time. Running pbpaste on the Mac shows what it actually has.
Exercise
A coworker's iPhone never appears in your Mac's AirDrop window, though both devices have Bluetooth and Wi-Fi on. Your Mac is set to Contacts Only. Explain why this can happen and give two fixes.
Show answer
In Contacts Only mode, the Mac compares hashed identity information from the coworker's advertisement with your contacts. If the coworker's Apple Account email or phone number is not on a contact card, there is no match and the Mac does not respond, so the iPhone never sees it. Fixes: add the coworker's Apple Account email or phone number to their contact card, or set AirDrop to Everyone for 10 Minutes for this transfer and switch it back afterward.
Exercise
Why does Handoff work between an iPhone on cellular and a Mac on office Wi-Fi, even though the devices are on different networks?
Show answer
Discovery uses Bluetooth Low Energy advertisements, and content moves over a direct peer-to-peer Wi-Fi link between the devices. Neither needs a shared router or network. The devices only need Bluetooth, Wi-Fi turned on, the same Apple Account for the shared keys, and proximity.