מניפסט – Bluetooth

מאפיין המניפסט 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