Manifiesto: Bluetooth

La propiedad bluetooth del manifiesto declara qué permisos están disponibles para la API de Bluetooth.

Ejemplo de 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
  },
  ...
}

Reference

  • uuids (arreglo de string) (opcional)

    La propiedad uuids del manifiesto declara la lista de protocolos, perfiles y servicios que puede usar una app para comunicarse.

  • socket (booleano): opcional

    Si es true, otorga permiso a una app para usar la API de bluetoothSocket.

  • low_energy (booleano): opcional

    Si es true, otorga permiso a una app para usar la API de bluetoothLowEnergy.

  • peripheral (booleano): opcional

    Si es true, otorga permiso a una app para usar las funciones de anuncios en la API de bluetoothLowEnergy.