Codename One Adds Native Bluetooth Support Across All Platforms Including Browser

Pull request #5399 integrates Bluetooth support directly into the Codename One core framework, replacing the older Cordova-based library with a purpose-built implementation. The update covers BLE central and peripheral roles, GATT, L2CAP, and classic RFCOMM across Android, iOS, desktop, and JavaScript targets. Each platform exposes only the Bluetooth capabilities its operating system supports, and the API explicitly reports unsupported features rather than silently failing. The JavaScript port works through the browser's native device chooser, requiring a user gesture and an HTTPS connection, but lacks peripheral mode, RSSI, and classic Bluetooth. Codename One is an open-source framework that lets developers build native and web apps from a single Java or Kotlin codebase.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in