Skip to content

Interaction of mobile app with desktop version via BLE.

Pidji edited this page Nov 19, 2018 · 1 revision

Native macOS implementation.
 In macOS BLE API implemented by CoreBluetooth framework. This is same CoreBluetooth as on iOS, so implementation of peripheral and central roles (advertiser/scanner) is identical to iOS version.


Chrome extension. 
 For communication with BLE devices Chrome provides chrome.bluetoothLowEnergy
 API. This API works only on ChromeOS, so it not suitable for our purposes.

Except of chrome.bluetoothLowEnergy API Chrome provides chrome.bluetooth API. Although this API available for macOS, it provides poor possibilities. With this API we can’t implement peripheral role, so we can only send funds but not receive it. 



Possible solution. From 61 version Chrome supports ES6 modules. Importing such module to Chrome extension gives as access to the BLE resources.

Useful links:

  1. ES6 modules in chrome extension
  2. ES6 module for communication with BLE devices
Clone this wiki locally