diff --git a/ntfy.xcodeproj/project.pbxproj b/ntfy.xcodeproj/project.pbxproj index daad103..65e2bfa 100644 --- a/ntfy.xcodeproj/project.pbxproj +++ b/ntfy.xcodeproj/project.pbxproj @@ -542,7 +542,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - APP_BASE_URL = "http://192.168.1.7"; + APP_BASE_URL = "http://192.168.105.215"; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = ntfy/ntfy.entitlements; @@ -578,7 +578,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - APP_BASE_URL = "http://192.168.1.7"; + APP_BASE_URL = "http://192.168.105.215"; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = ntfy/ntfy.entitlements; diff --git a/ntfy/App/AppDelegate.swift b/ntfy/App/AppDelegate.swift index dcb5551..697834b 100644 --- a/ntfy/App/AppDelegate.swift +++ b/ntfy/App/AppDelegate.swift @@ -97,6 +97,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate { ) { let userInfo = notification.request.content.userInfo Log.d(tag, "Notification received via userNotificationCenter(willPresent)", userInfo) + NotificationCenter.default.post(name: .notificationReceived, object: nil) completionHandler([[.banner, .sound]]) } @@ -129,6 +130,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate { UIApplication.shared.open(url, options: [:], completionHandler: nil) } + NotificationCenter.default.post(name: .notificationReceived, object: nil) completionHandler() } }