La proprietà manifest bluetooth
dichiara quali autorizzazioni sono disponibili per l'API bluetooth.
File manifest.json di esempio
{
"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
},
...
}
Riferimento
uuids
(array di stringhe): facoltativoLa proprietà manifest
uuids
dichiara l'elenco di protocolli, profili e servizi con cui un'app può comunicare.socket
(booleano) - FacoltativoSe
true
, concede a un'app l'autorizzazione a utilizzare l'API bluetoothSocketlow_energy
(booleano) - FacoltativoSe
true
, concede a un'app l'autorizzazione a utilizzare l'API bluetoothLowEnergyperipheral
(booleano) - FacoltativoSe
true
, concede a un'app l'autorizzazione a utilizzare le funzioni pubblicitarie nell'API bluetoothLowEnergy