diff --git a/Andromida.xcodeproj/project.pbxproj b/Andromida.xcodeproj/project.pbxproj index fbaa931..f37707e 100644 --- a/Andromida.xcodeproj/project.pbxproj +++ b/Andromida.xcodeproj/project.pbxproj @@ -420,7 +420,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.1; PRODUCT_BUNDLE_IDENTIFIER = com.mbrucedogs.Andromida; PRODUCT_NAME = "$(TARGET_NAME)"; STRING_CATALOG_GENERATE_SYMBOLS = YES; @@ -454,7 +454,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.1; PRODUCT_BUNDLE_IDENTIFIER = com.mbrucedogs.Andromida; PRODUCT_NAME = "$(TARGET_NAME)"; STRING_CATALOG_GENERATE_SYMBOLS = YES; diff --git a/Andromida/App/Services/ReminderScheduler.swift b/Andromida/App/Services/ReminderScheduler.swift index 482f645..ae85435 100644 --- a/Andromida/App/Services/ReminderScheduler.swift +++ b/Andromida/App/Services/ReminderScheduler.swift @@ -82,6 +82,7 @@ final class ReminderScheduler: NSObject, UNUserNotificationCenterDelegate { willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void ) { + print("🔔 Notification will present in foreground: \(notification.request.identifier)") // Show the notification even when the app is in the foreground completionHandler([.banner, .list, .sound, .badge]) } @@ -91,6 +92,7 @@ final class ReminderScheduler: NSObject, UNUserNotificationCenterDelegate { didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void ) { + print("🔔 Notification received/tapped: \(response.notification.request.identifier)") // Clear badge when user interacts with notification clearBadge() completionHandler() @@ -141,6 +143,8 @@ final class ReminderScheduler: NSObject, UNUserNotificationCenterDelegate { /// Schedules a test notification to appear in 5 seconds. func scheduleTestNotification() { + print("🔔 Attempting to schedule test notification...") + let content = UNMutableNotificationContent() content.title = String(localized: "Test Notification") content.body = String(localized: "This is a test notification to verify delivery.") @@ -156,7 +160,9 @@ final class ReminderScheduler: NSObject, UNUserNotificationCenterDelegate { UNUserNotificationCenter.current().add(request) { error in if let error = error { - print("Failed to schedule test notification: \(error)") + print("❌ Failed to schedule test notification: \(error)") + } else { + print("✅ Test notification scheduled successfully! It should appear in 5 seconds.") } } } diff --git a/Andromida/Assets.xcassets/AppIcon.appiconset/AppIcon.png b/Andromida/Assets.xcassets/AppIcon.appiconset/AppIcon.png deleted file mode 100644 index 5b5035c..0000000 Binary files a/Andromida/Assets.xcassets/AppIcon.appiconset/AppIcon.png and /dev/null differ diff --git a/Andromida/Assets.xcassets/AppIcon.appiconset/Contents.json b/Andromida/Assets.xcassets/AppIcon.appiconset/Contents.json index 6a6ac99..2305880 100644 --- a/Andromida/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/Andromida/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,101 +1,10 @@ { "images" : [ { - "filename" : "AppIcon.png", "idiom" : "universal", "platform" : "ios", "size" : "1024x1024" }, - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "83.5x83.5", - "scale" : "2x" - }, - { - "idiom" : "ios-marketing", - "size" : "1024x1024", - "scale" : "1x" - }, { "appearances" : [ {