This page is part of the documentation for the Chrome Apps platform, which was deprecated in 2020. Chrome Apps in Kiosk Mode used by Enterprise and Education customers will no longer be supported after April 2027, marking their end of life. Additionally, all remaining Chrome Apps used in managed environments by Enterprise and Education organizations will reach their end of life in October 2028. Learn more about migrating your app.

Manifest - Bluetooth

The bluetooth manifest property declares which permissions are available for the bluetooth API.

Sample 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 (array of string) - optional

    The uuids manifest property declares the list of protocols, profiles and services that an app can communicate using.

  • socket (boolean) - optional

    If true, gives permission to an app to use the bluetoothSocket API

  • low_energy (boolean) - optional

    If true, gives permission to an app to use the bluetoothLowEnergy API

  • peripheral (boolean) - optional

    If true, gives permission to an app to use the advertisement functions in the bluetoothLowEnergy API

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2014年03月11日 UTC.