Sub topic 10
Under the hood: Bluetooth, Wi-Fi, and iCloud
This chapter assumes you have already turned on Handoff, used Universal Clipboard, and sent a file with AirDrop. You should be comfortable with System Settings on macOS and Settings on iOS. Here you learn which radio or service each feature depends on. That knowledge is what makes troubleshooting a matter of reasoning instead of guessing.
The three building blocks
Continuity does not use one single connection. Each feature combines three pieces.
- Bluetooth Low Energy (BLE) is a low-power radio. Devices use it to announce themselves and to notice each other nearby. It carries small messages, not large files.
- Peer-to-peer Wi-Fi is a direct Wi-Fi link between two devices. It does not need a router. Apple's name for the underlying technology is Apple Wireless Direct Link. It moves bigger payloads quickly.
- iCloud is Apple's online service. Your Apple Account links your devices together through it, and it can store or relay data when a direct link is not enough.
The table shows which pieces each feature leans on most.
| Feature | Discovery | Data transfer | Role of iCloud |
|---|---|---|---|
| Handoff | Bluetooth LE advertisements | Small activity data over Bluetooth. Larger state may use iCloud or Wi-Fi. | Same Apple Account identifies your own devices |
| Universal Clipboard | Bluetooth LE | Clipboard contents over a Wi-Fi link | Same Apple Account identifies your own devices |
| AirDrop | Bluetooth LE, then a Wi-Fi handshake | Files over peer-to-peer Wi-Fi | Contact matching for the Contacts Only setting |
Apple does not publish every protocol detail, so treat the table as a working model. It is accurate enough to predict most failures.
How Handoff finds your other device
When you work in a Handoff-capable app, your device broadcasts a short, encrypted Bluetooth LE advertisement. It says, in effect, "an activity is available." Your other devices that are signed in to the same Apple Account and are within Bluetooth range can read it. The Mac then shows an icon in the Dock. The iPhone shows a banner in the app switcher.
Nothing large moves at this point. The advertisement only signals that an activity exists. When you click the icon, the second device asks the first for the activity data. In the NSUserActivity code later in this tutorial, that data is the userInfo dictionary. If the activity needs more data than fits in a small payload, the system sets up a stream between the devices or the app falls back on iCloud.
How Universal Clipboard moves content
Universal Clipboard builds on Handoff. When you copy on one device, that device advertises that new clipboard data exists. When you paste on the other device within a short time, the second device requests the content and the data travels over a direct Wi-Fi link.
This explains two behaviors you may have noticed:
- A paste that has to fetch a large image can pause for a moment. The data is not yet on the receiving device when you press paste.
- The clipboard content expires quickly. It is meant to be used soon after you copy it, not stored.
You can observe the result on the Mac. After you copy text on the iPhone, run this in Terminal:
pbpasteThe Mac prints the clipboard text, which shows that the content has arrived.
How AirDrop connects
AirDrop uses all three pieces in sequence.
- Your device advertises over Bluetooth LE that it is looking for a receiver.
- Nearby devices that are allowed to receive respond. Their visibility depends on the receiving setting you chose earlier.
- The two devices set up a direct Wi-Fi link, and the file travels over it.
For the Contacts Only setting, the devices compare identity information tied to Apple Accounts against the address book. iCloud supplies the account identity. That is why a person who is in your Contacts can still be invisible to you if their contact card lacks the email address or phone number linked to their Apple Account.
Why the radios matter for troubleshooting
Each dependency gives you a specific thing to check.
- If the Handoff icon never appears, suspect Bluetooth or a mismatch between Apple Accounts. The advertisement is the first step.
- If the icon appears but a paste or transfer stalls, suspect the Wi-Fi link. Wi-Fi must be on, even if you are not joined to a network.
- If Contacts Only fails, suspect the iCloud identity match.
- Personal Hotspot and some VPN or firewall settings can interfere with Wi-Fi-based transfers.
To confirm the Mac's OS version and Bluetooth state, run:
sw_vers
system_profiler SPBluetoothDataType | head -n 15The first command prints the macOS release. The second prints the start of the Bluetooth report, where you can confirm that Bluetooth is available and on.
Exercise
You copy text on your iPhone, and the Mac shows no sign of it when you paste. Bluetooth is on for both devices. Which other radio would you check next, and why?
Show answer
Check Wi-Fi on both devices. Bluetooth LE only announces that clipboard data exists. The content itself moves over a direct Wi-Fi link, so Wi-Fi must be on even if the devices are not on the same network. You should also confirm both devices use the same Apple Account.