<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: 14.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/NetworkingProcess",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "s:16BrowserEngineKit17NetworkingProcessV"
  },
  "title" : "NetworkingProcess"
}
-->

# NetworkingProcess

A process that manages network connections in an app extension.

```
struct NetworkingProcess
```

## Overview

A browser app can have one or more networking extensions, each of which need a separate bundle identifier. The app can launch only one instance of each networking extension.

## Topics

### Creating and invalidating extension processes

[`init(bundleIdentifier: String?, onInterruption: () -> Void) async throws`](/documentation/BrowserEngineKit/NetworkingProcess/init(bundleIdentifier:onInterruption:))

Launches a networking extension process asynchronously.

[`func invalidate()`](/documentation/BrowserEngineKit/NetworkingProcess/invalidate())

Stops the networking process.

### Creating XPC connections

[`func makeLibXPCConnection() throws -> xpc_connection_t`](/documentation/BrowserEngineKit/NetworkingProcess/makeLibXPCConnection())

Creates a new XPC connection to the extension process.

### Coordinating processes

[`func grantCapability(ProcessCapability) throws -> ProcessCapability.Grant`](/documentation/BrowserEngineKit/NetworkingProcess/grantCapability(_:))

Grants the specified capability to the process.

[`func grantCapability(ProcessCapability, invalidationHandler: () -> Void) throws -> ProcessCapability.Grant`](/documentation/BrowserEngineKit/NetworkingProcess/grantCapability(_:invalidationHandler:))

Grants the specified capability to the process, calling the handler when the capability becomes invalid.



---

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)