diff --git a/FuelBoard/ProximityMonitor.swift b/FuelBoard/ProximityMonitor.swift index b5c4ee9..c298ff7 100644 --- a/FuelBoard/ProximityMonitor.swift +++ b/FuelBoard/ProximityMonitor.swift @@ -261,19 +261,11 @@ final class ProximityMonitor: NSObject, ObservableObject, @preconcurrency CLLoca // Tie case: no map. A snapshot would only show one arbitrary station // (the primary), which is misleading — the user must pick from the - // action buttons. Deliver immediately with the choice buttons, and - // attach the app icon so the FuelBoard identity shows explicitly - // (the notification header icon is the container's inside - // LiveContainer, so the banner's right-hand thumbnail is the icon). + // action buttons. Deliver immediately with the choice buttons. if !ties.isEmpty { self.registerTieCategory(identifier: identifier, ties: ties) content.categoryIdentifier = "tie-\(identifier)" - if let icon = Self.appIconAttachment() { - content.attachments = [icon] - mapStatus?("map: none (tie) · icon: attached") - } else { - mapStatus?("map: none (tie — pick a station)") - } + mapStatus?("map: none (tie — pick a station)") UNUserNotificationCenter.current().add( UNNotificationRequest(identifier: identifier, content: content, trigger: nil) ) @@ -373,17 +365,6 @@ final class ProximityMonitor: NSObject, ObservableObject, @preconcurrency CLLoca } } - /// The app's own icon as a notification attachment, so the FuelBoard - /// identity shows explicitly even though the notification header icon is - /// the container's inside LiveContainer. Pulls the compiled - /// AppIcon60x60@2x.png straight from the bundle. - private static func appIconAttachment() -> UNNotificationAttachment? { - guard let url = Bundle.main.url(forResource: "AppIcon60x60@2x", withExtension: "png") else { - return nil - } - return try? UNNotificationAttachment(identifier: "icon", url: url, options: nil) - } - /// Fires a test alert built from REAL data: the cheapest station selling /// the monitored fuel within the configured alert radius of the current /// location — the same criteria a live geofence entry would apply, minus