import Foundation
import CoreLocation

/// iOS 17+ CLBackgroundActivitySession — keeps location pipeline alive in background (Apple recommended)
final class BackgroundActivitySession {
  static let shared = BackgroundActivitySession()

  private var session: AnyObject?

  func start() {
    // Intentionally empty. We rely on traditional background location
    // (allowsBackgroundLocationUpdates = true + showsBackgroundLocationIndicator = true)
    // so the Blue Indicator Pill stays visible while Live Activities run.
  }

  func stop() {
    // Intentionally empty.
  }

  var isActive: Bool { session != nil }
}
