<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocation",
  "identifier" : "/documentation/CoreLocation/CLBackgroundActivitySession-4nl4y",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Location"
    ],
    "preciseIdentifier" : "c:objc(cs)CLBackgroundActivitySession"
  },
  "title" : "CLBackgroundActivitySession"
}
-->

# CLBackgroundActivitySession

An object that manages a visual indicator that keeps your app in use in the background, allowing it to receive updates or events.

```
@interface CLBackgroundActivitySession : NSObject
```

## Overview

Use `CLBackgroundActivitySession` to start a background activity session that allows a when-in-use authorized app to receive location updates or monitoring events.

## Topics

### Creating a background activity session

[`+ (instancetype) backgroundActivitySession;`](/documentation/CoreLocation/CLBackgroundActivitySession-4nl4y/backgroundActivitySession)

Creates a new background activity session.

### Ending the session

[`- (void) invalidate;`](/documentation/CoreLocation/CLBackgroundActivitySession-4nl4y/invalidate)

Invalidates the background activity session.

### Type Methods

[`+ (instancetype) backgroundActivitySessionWithQueue:(dispatch_queue_t) queue handler:(void (^)(CLBackgroundActivitySessionDiagnostic *diagnostic)) handler;`](/documentation/CoreLocation/CLBackgroundActivitySession-4nl4y/backgroundActivitySessionWithQueue:handler:)

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)