Notification tap opens directions to the station

- Alerts (live + real-data test) carry the station name + coordinates in
  userInfo and attach a map snapshot with a red pin, so the expanded
  notification shows where the station is
- Tapping a notification opens Apple Maps driving directions to the
  station from the user's current location (maps:// daddr)
- If Apple Maps hand-off fails (LiveContainer), an in-app map sheet
  (StationMapView) pins the station + user location with a Directions
  button
This commit is contained in:
FuelBoard Contributor
2026-08-12 09:57:42 +01:00
parent 9f6ecb610c
commit a964a45d49
3 changed files with 164 additions and 10 deletions
+3
View File
@@ -159,6 +159,9 @@ struct ContentView: View {
showOnboarding = false
}
}
.sheet(item: $monitor.pendingStationMap) { request in
StationMapView(request: request)
}
.onAppear {
// Onboarding runs first on a fresh install it owns the initial
// permission prompts. Location tracking starts once it's done.