---
title: allowsCellularAccess
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlsessionconfiguration/allowscellularaccess
---

# allowsCellularAccess

A Boolean value that determines whether connections should be made over a cellular network.

## Declaration

```swift
var allowsCellularAccess: Bool { get set }
```

## Discussion

Discussion This property controls whether tasks in sessions based on this session configuration are allowed to make connections over a cellular network. The default value is true. For more information, read Restrict Cellular Networking Correctly.

## See Also

### Setting general properties

- [identifier](foundation/urlsessionconfiguration/identifier.md)
- [httpAdditionalHeaders](foundation/urlsessionconfiguration/httpadditionalheaders.md)
- [networkServiceType](foundation/urlsessionconfiguration/networkservicetype.md)
- [timeoutIntervalForRequest](foundation/urlsessionconfiguration/timeoutintervalforrequest.md)
- [timeoutIntervalForResource](foundation/urlsessionconfiguration/timeoutintervalforresource.md)
- [sharedContainerIdentifier](foundation/urlsessionconfiguration/sharedcontaineridentifier.md)
- [waitsForConnectivity](foundation/urlsessionconfiguration/waitsforconnectivity.md)
- [usesClassicLoadingMode](foundation/urlsessionconfiguration/usesclassicloadingmode.md)
