<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryTransportExtension",
  "identifier" : "/documentation/AccessoryTransportExtension/AccessoryTransportSession/transportStateRestoreIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Accessory Transport Extension"
    ],
    "preciseIdentifier" : "s:27AccessoryTransportExtension0aB7SessionC31transportStateRestoreIdentifierSSSgvp"
  },
  "title" : "transportStateRestoreIdentifier"
}
-->

# transportStateRestoreIdentifier

An optional identifier for restoring transport state across sessions.

```
var transportStateRestoreIdentifier: String?
```

## Discussion

Use this identifier to restore an interrupted Bluetooth session in your transport extension. Restoring the prior session allows your extension to skip accessory scanning and notification-forwarding subscription after the system relaunches or resumes your extension from the background. When reinitializing your extension’s <doc://com.apple.documentation/documentation/CoreBluetooth/CBCentralManager>, pass the value of this property as the `CBCentralManagerOptionRestoreIdentifierKey` options key to the <doc://com.apple.documentation/documentation/CoreBluetooth/CBCentralManager/init(delegate:queue:options:)> initializer:

```swift
// Build the options dictionary.
var options: [String: Any] = [:]
if let restoreID = transportSession.transportStateRestoreIdentifier {
    options[CBCentralManagerOptionRestoreIdentifierKey] = restoreID
}

// Instantiate the `CBCentralManager`.
let centralManager = CBCentralManager(
    delegate: self,
    queue: .main,        // Or, use a dedicated dispatch queue.
    options: options
)
```

Create only one `CBCentralManager` with this identifier in your extension. Your extension also needs to implement the <doc://com.apple.documentation/documentation/CoreBluetooth/CBCentralManagerDelegate/centralManager(_:willRestoreState:)> delegate method to reconstitute the restored state when the system launches your extension from a cold state. The system doesn’t call this method when your extension resumes from a warm suspended state, since the objects remain in memory.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)