UPDATE: As of April 17th, 2017, Web Bluetooth on Android now requires Android Marshmallow: http://crbug.com/694332
First of all, thanks for asking. You're not the only one for sure...
As mentioned in https://github.com/WebBluetoothCG/web-bluetooth/blob/gh-pages/implementation-status.md#notes,
Tip of tree Chromium builds work on Android Lollipop or later for ease of developers
- but Chrome versions will only ever support Marshmallow or later.
So here's how to play with Web Bluetooth on Chrome for Android Lollipop:
- Open the Android Settings app
- Make sure "Developer Options" are unlocked and available - help
- Select "Developer" and enable "USB Debugging"
- Plug your Android device to your computer
- Accept "USB Debugging" session on your Android Device
- Download the latest Chromium build for Android at https://download-chromium.appspot.com/?platform=Android on your computer
- Extract the downloaded
chrome-android.zip
file in your ~/Downloads
folder for instance
- Install ADB on your computer if it's not already there yet
- Install Chromium by typing
adb install -r ~/Downloads/chrome-android/apks/ChromePublic.apk
in your shell
- Open the new Chromium App on your Android device
- Accept a Chromium Location prompt by going to https://www.google.com for instance - Location permission is needed to access Bluetooth in Chrome for Android Lollipop.
Finally enable the experimental flag at chrome://flags/#enable-web-bluetooth
and/or request an Origin Trial token so that your website can use the Web Bluetooth API without any flag.
- Play with some Web Bluetooth samples at https://googlechrome.github.io/samples/web-bluetooth/
Notes:
Warning! The Chromium build for Android won't auto-update like Google Chrome. If you want a new build of Chromium to test new features, you'll have to re-download one and re-install it on your Android device.