매니페스트 - 블루투스

bluetooth 매니페스트 속성은 bluetooth API에 사용할 수 있는 권한을 선언합니다.

샘플 manifest.json

{
  "name": "My Bluetooth app",
  "bluetooth": {
    // Permission for chrome.bluetoothSocket:
    // The application is allowed to communicate with devices
    // using the protocols, profiles, or services identified by
    // the UUIDs 0x1105 and 0x1106 using the BluetoothSocket API.
    "uuids": [ "1105", "1106" ],
    "socket": true
  },
  ...
}
{
  "name": "My Bluetooth app",
  "bluetooth": {
    // Permission for chrome.bluetoothLowEnergy:
    // The application is allowed to communicate with devices
    // using the profiles identified by the UUIDs 0x180D, 0x1809 and 0x180F
    // using the BluetoothLowEnergy API.
    "uuids": [ "180D", "1809", "180F" ],
    "low_energy": true
  },
  ...
}

참조

  • uuids (문자열 배열) - 선택사항

    uuids 매니페스트 속성은 앱이 통신할 수 있는 프로토콜, 프로필, 서비스의 목록을 선언합니다.

  • socket (불리언) - 선택사항

    true인 경우 앱에 bluetoothSocket API를 사용할 권한을 부여합니다.

  • low_energy (불리언) - 선택사항

    true인 경우 앱에 bluetoothLowEnergy API를 사용할 권한을 부여합니다.

  • peripheral (불리언) - 선택사항

    true인 경우 bluetoothLowEnergy API의 광고 기능을 사용할 수 있는 권한을 앱에 부여합니다.