---
title: "application(_:didSelect:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cpapplicationdelegate/application(_:didselect:)-478jb"
---

# application(_:didSelect:)

Tells the app delegate that the user selected an action from a navigation alert.

## Declaration

```swift
optional func application(_ application: UIApplication, didSelect navigationAlert: CPNavigationAlert)
```

## Parameters

- `application`: Your singleton app object.
- `navigationAlert`: The alert tapped by the user.

## Discussion

Discussion When your app posts a navigation alert while running in the background, CarPlay may display a notification banner. If the user taps the banner, the system displays your app on the CarPlay screen, then calls this method.
