<!--
{
  "availability" : [
    "iOS: 16.1.0 - 16.4.0",
    "iPadOS: 16.1.0 - 16.4.0",
    "macCatalyst: 16.1.0 - 16.4.0",
    "macOS: 13.0.0 - 13.3.0"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundAssets",
  "identifier" : "/documentation/BackgroundAssets/BAURLDownload/init(identifier:request:applicationGroupIdentifier:priority:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Background Assets"
    ],
    "preciseIdentifier" : "c:objc(cs)BAURLDownload(im)initWithIdentifier:request:applicationGroupIdentifier:priority:"
  },
  "title" : "init(identifier:request:applicationGroupIdentifier:priority:)"
}
-->

# init(identifier:request:applicationGroupIdentifier:priority:)

Creates a prioritized download that uses the specified identifier and App Group.

```
convenience init(identifier: String, request: URLRequest, applicationGroupIdentifier: String, priority: BADownload.Priority)
```

## Parameters

`identifier`

An app-specific string that uniquely identifies the downloadable asset.

`request`

A URL request that provides request-specific information, such as URL, request type, and body data.

`applicationGroupIdentifier`

The identifier of the App Group where the system stores finished downloads. For more information about App Groups, see <doc://com.apple.documentation/documentation/Xcode/configuring-app-groups>.

`priority`

The priority of the download. For more information, see [`BADownload.Priority`](/documentation/BackgroundAssets/BADownload/Priority-swift.struct).

## Discussion

The system requires that all URL requests use Hypertext Transfer Protocol Secure (HTTPS).

---

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)