<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapTemplateDelegate/mapTemplate(_:shouldShowNotificationFor:)-5lu8a",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(pl)CPMapTemplateDelegate(im)mapTemplate:shouldShowNotificationForNavigationAlert:"
  },
  "title" : "mapTemplate(_:shouldShowNotificationFor:)"
}
-->

# mapTemplate(_:shouldShowNotificationFor:)

Asks the delegate whether the system should display the navigation alert as a notification when the app is in the background.

```
optional func mapTemplate(_ mapTemplate: CPMapTemplate, shouldShowNotificationFor navigationAlert: CPNavigationAlert) -> Bool
```

## Parameters

`mapTemplate`

The current map template.

`navigationAlert`

The navigation alert to display as a notification.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the system should display the navigation alert as a notification; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

---

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)