BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Tether: Apple Continuity Like Experience Between iOS and Linux Desktop Machines

Tether: Apple Continuity Like Experience Between iOS and Linux Desktop Machines

Listen to this article -  0:00

Bringing the seamless ecosystem experience of iOS to Linux workstations has always been a significant challenge. Developer Zack Bartel recently announced Tether, an open-source project aiming to replicate Apple Continuity features for Linux users. The software allows users to send and receive iMessages and SMS, sync clipboards, transfer files, and view iOS notifications directly on a Linux machine. The system is built around two primary technical pillars, combining secure local network communication with a custom Bluetooth stack to bypass traditional operating system restrictions.

Robust security and reliable networking form the core foundation of Tether. From its inception, the communication between the iPhone app and the Linux daemon was built on mutual TLS. Both the mobile device and the computer must explicitly authenticate and agree before any data transmission occurs. Bartel notes that security remains a first-class citizen, bolstered by regular Opus and Fable security sweeps. This secure local network layer handles tasks like cross-platform clipboard synchronisation and file transfers.

According to him, the most complex technical achievement involves Tether bridging the notification and messaging gap using Bluetooth. Previously, developers often relied on running proxy servers on a Mac to handle iMessage routing. Bartel avoided this by building a clean-room C++ implementation of the Bluetooth protocols necessary to interface directly with iOS. Drawing inspiration from existing open-source projects like ancs4linux and BlueFerry, as well as protocol documentation by erikwb, Bartel developed an independent stack released under the permissive MIT license. This Bluetooth integration directly handles iMessage, SMS, contact synchronisation, and push notifications natively, despite the inherent complexities and edge cases of modern Bluetooth implementations.

Another highly innovative feature is the automated handling of one-time passwords. Bartel designed custom WebExtensions for Zen Browser and Betterbird to replicate the macOS feature where security codes seamlessly autofill into login forms. When an authentication code arrives via text or email on the iPhone, Tether captures it and passes it through the secure network link to the mail extension on Linux. This extension then communicates directly with the browser extension to populate the waiting input field, entirely automating the authentication flow without requiring any external third-party cloud servers for processing.

Even though, for now, there are major limitations of choice for users: not using the Zen Browser’s or Betterbird’s extension will not provide the smooth one-time code flow, Bartel proved that it is possible to communicate between different OS families. His project opens the door opens the door on accross OS interactions and seamless UX and maybe even allows us to imagine a future when we'll not be forced to choose between different OS ecosystems, and we can allow us to use the most appropriate choice for mobile, tablet and desktop and still be able to be "in the flow".

About the Author

Rate this Article

Adoption
Style

BT