---
title: "templateApplicationScene(_:didSelect:)"
framework: carplay
role: symbol
role_heading: Instance Method
path: "carplay/cptemplateapplicationscenedelegate/templateapplicationscene(_:didselect:)-7bie0"
---

# templateApplicationScene(_:didSelect:)

Tells the delegate when the user selects a navigation alert while the app is in the background.

## Declaration

```swift
optional func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didSelect navigationAlert: CPNavigationAlert)
```

## Parameters

- `templateApplicationScene`: The active scene.
- `navigationAlert`: The selected navigation alert.

## Discussion

Discussion If your navigation app posts a navigation alert while in the background, CarPlay displays a notification banner to the user. If the user taps the banner, CarPlay brings your navigation app to the foreground and calls this method.

## See Also

### Responding to User Actions

- [templateApplicationScene(_:didSelect:)](carplay/cptemplateapplicationscenedelegate/templateapplicationscene(_:didselect:)-5rf2h.md)
