---
title: localIdentifier
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkdevice/localidentifier
---

# localIdentifier

An identifier that uniquely identifies the device object on the hardware running this code.

## Declaration

```swift
var localIdentifier: String? { get }
```

## Discussion

Discussion For example, Bluetooth peripherals that store data directly into HealthKit use the peripheral’s CoreBluetooth UUID. This ID is only valid on the current hardware running the app. For example, connecting the same Bluetooth device to an iPhone and an Apple Watch produces two different local identifiers. Similarly, updating a device changes the local identifier. Device objects with different local identifiers appear as separate devices in the HealthKit Store.

## See Also

### Accessing Data About a Device

- [udiDeviceIdentifier](healthkit/hkdevice/udideviceidentifier.md)
- [firmwareVersion](healthkit/hkdevice/firmwareversion.md)
- [hardwareVersion](healthkit/hkdevice/hardwareversion.md)
- [manufacturer](healthkit/hkdevice/manufacturer.md)
- [model](healthkit/hkdevice/model.md)
- [name](healthkit/hkdevice/name.md)
- [softwareVersion](healthkit/hkdevice/softwareversion.md)
